4

When I try to Publish my web application, It deletes all the existing files in the deployment folder and re-Create everything. I need one folder (say a folder named 'Notes') not to be deleted.

I can see on the Publish Web wizard to "Excludes files from the app_Data folder". But how can I do it for a folder that I create.

environment: Visual Studio 2015.

Publish Web with File System as Publish Method.

Owen
  • 303
  • 1
  • 3
  • 8

1 Answers1

0

Did you try editing the .pubxml file? If you add a "ExcludeFoldersFromDeplyment" property it should work.

Check https://msdn.microsoft.com/en-us/library/ee942158%28v=vs.110%29.aspx, it has all the info you need.