VS 2008 Web 部署 - 防止文件夹被删除
我有一个 ASP.NET MVC 2 项目,该项目是使用 Web 部署项目 (Visual Studio 2008) 构建和部署的。该网站的根目录中有一个上传文件夹,用户生成的图像将保存到其中。每当构建运行(使用 team city)时,上传文件夹都会被删除,这意味着任何以前上传的图像都会被永久删除。
无论如何,在部署项目中我可以告诉它不要删除此文件夹吗?或者我是否必须将其复制出预构建并将其复制回构建后?
非常感谢任何帮助
I have an ASP.NET MVC 2 project that is built and then deployed using a web deployment project (Visual Studio 2008). The site has an uploads folder in the root of the site where user generated images are saved to. Whenever the build is run (using team city) the uploads folder is deleted meaning any previously uploaded images are deleted for good.
Is there anyway in the deployment project that i can tell it not to delete this folder? Or will i have to copy it out prebuild and copy it back in afterbuild?
Any help is greatly appreciated
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论