Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS2010 Publish do not copy additional folder from Content folder

we are developing a web application using MVC3 and VS2010. We have some pdf files under Content\PDFFiles folder. when we publish the website to our server using "File System" publish method, it does not copy the "PDFFiles" folder to the server. however it is copying the other folders (images, themes) from "content" folder. "PDFFiles" folder is additionally added to have pdffiles used by our web application.

anyone know the reason behind it?

Thanks,

like image 684
matmat Avatar asked Jul 08 '11 18:07

matmat


2 Answers

In the Visual Studio Solution Explorer when you right-click on each of the items (files) and select Properties what is the Build Action? Is it Content? If not give that a try.

like image 135
Peter Mourfield Avatar answered Oct 04 '22 19:10

Peter Mourfield


You can also include an extra folder with all its contents editing the publish profile: http://www.asp.net/mvc/tutorials/deployment/visual-studio-web-deployment/deploying-extra-files

like image 43
tonymayoral Avatar answered Oct 04 '22 17:10

tonymayoral