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.
On the File menu, click Open to open your application manifest. Select the Files tab. In the text box at the top of the tab, enter the directory that contains your application's files, and then click Populate. Your data file will appear in the grid.
Right-click on the project (not the solution) in Solution Explorer and select Publish. In the Publish tab, select Publish. Visual Studio writes the files that comprise your application to the local file system.
Publishing creates the set of files that are needed to run your application. To deploy the files, copy them to the target machine.
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.
VS2010 has an option under
Project -> Package/Publish Settings -> Package/Publish Web (Tab) -> Items to Deploy
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With