Solving development problems  |  About this blog

PDF files not Publish in ASP.NET MVC when deploying

We faced a problem when we added some PDF files into our media library of ASP.NET MVC website and noticed that these files are not Published automatically.
So you need in Visual Studio to click on each PDF file and under Properties (F4) just choose

  • Build Action=Content
  • Copy to Output Directory=Copy Always
blog comments powered by Disqus