matmat
matmat

Reputation: 2386

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,

Upvotes: 5

Views: 7078

Answers (2)

tonymayoral
tonymayoral

Reputation: 5217

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

Upvotes: 1

Peter Mourfield
Peter Mourfield

Reputation: 1885

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.

Upvotes: 17

Related Questions