开发者

VS2010 Publish do not copy additional folder from Content folder

开发者 https://www.devze.com 2023-03-18 20:17 出处:网络
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 doe

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. "PDFFi开发者_开发知识库les" folder is additionally added to have pdffiles used by our web application.

anyone know the reason behind it?

Thanks,


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消