Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set Visual Studio to Publish pdf files automatically

Is there a way to set visual studio to publish all pdf files?

I know that you can set each individual pdf file in a project with the Build Action "Content" property.

But that means doing the same thing 100's of times for my current project, is there a way to change a global setting to do the same thing?

like image 476
TheAlbear Avatar asked Oct 29 '09 10:10

TheAlbear


2 Answers

there is an easier way, you have to make sure your file is included in the project first, then right-click on the file go to properties, there will be an option "copy to output directory", choose "copy always"

Good luck

like image 153
Dmitry.Alk Avatar answered Sep 23 '22 15:09

Dmitry.Alk


Just right click on the file you want to include, choose properties, in the properties window change build action to content. This will include the file during publish.

like image 24
Vinblad Avatar answered Sep 21 '22 15:09

Vinblad