Control what Web / MSDeploy publishes: PDF files?

I am using VS2010 and WebDeploy (MSDeploy) to automate the publishing of an ASP.NET website on a public server. The problem is that it does not publish .PDF files. They seem to be ignored, perhaps as an assembly artifact or non-public content. How do I change the list of file or folder extensions included in a deployment?

+4
source share
1 answer

I assume PDF files are included in Visual Studio. Right-click the file in Solution Explorer β†’ click Properties. Set Build Action to Content. Then Web Deploy will pick it up.

+7
source

All Articles