Folder not uploading with VS Publish / Web Deploy

Paul Brown picture Paul Brown · Apr 19, 2011 · Viewed 9.8k times · Source

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

Answer

Mike picture Mike · Sep 2, 2011

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.