Visual Studio 2010 Not Publishing All Files to File System

visual studio 2010

Visual Studio 2010 is not publishing all files to the file system. In VS 2008 there was an option to include all files in the project when publishing. However, VS 2010 does not have this option. When I go to publish using the file system publish method, certain files are not published such as .pdf files and .flv files. These files are included in the project so I am not sure why they do not get published.

Best Answer

If you specify the items you added to your project as having a build action of "Content" (instead of the default for unknown item types, which I think is "None"), then VS will automatically include it when publishing.