Search code examples
visual-studio-2010asp.net-mvc-3webdeployone-click-web-publishing

Folder not uploading with VS Publish / Web Deploy


I am using the Publish / Web Deploy option within VS 2010 to publish my ASP.NET MVC3 website.

However it does not by default publish my "files" folder that I have highlighted below.

enter image description here

Any ideas how I can get this file included during publishing?

Thanks Paul


Solution

  • Within the Visual Studio Solution Explorer you need to right-click and select properties on each of the files within that directory (you can select them all at once and then right-click -> properties if you want to change them all).

    Make sure the Build Action is set to Content. This will ensure that the files are copied as part of the publish process.