Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2010 Not Publishing All Files to File System

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.

like image 912
james2code Avatar asked Jul 16 '10 16:07

james2code


People also ask

How do I add files to Clickonce deployment?

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.

How do I publish a file in Visual Studio?

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.

How does publish work in Visual Studio?

Publishing creates the set of files that are needed to run your application. To deploy the files, copy them to the target machine.


2 Answers

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.

like image 128
Michael Edenfield Avatar answered Sep 30 '22 16:09

Michael Edenfield


VS2010 has an option under

Project -> Package/Publish Settings -> Package/Publish Web (Tab) -> Items to Deploy

like image 34
Simon Hazelton Avatar answered Sep 30 '22 16:09

Simon Hazelton