如何从Web部署项目中的复制过程中排除特定文件夹?

时间:2021-11-24 07:21:42

I am suing VS 2005 and a Web Deployment project. The problem is that the build process takes a very long time because the deployment process copies my images folder to the deployment directory. The images folder is small in size but has thousands of files. I want to keep the images in my development folder so that I can see if the linking to the images in the HTML works. However I never upload the images because they are already there. So I am ideally wanting to exclude that folder from the deployment process.

我正在起诉VS 2005和一个Web部署项目。问题是构建过程需要很长时间,因为部署过程会将我的images文件夹复制到部署目录。 images文件夹虽小,但有数千个文件。我想将图像保存在我的开发文件夹中,以便我可以看到链接到HTML中的图像是否有效。但是我从不上传图片,因为它们已经存在。所以我理想地希望从部署过程中排除该文件夹。

Is there a easy way to do this?

有一个简单的方法来做到这一点?

1 个解决方案

#1


This SO post mentions an addin (Web Deployment addin) that should allow you to exclude items from the build process.

此SO帖子提到了一个插件(Web部署插件),它应该允许您从构建过程中排除项目。

You can also go about excluding items by manually editing the Web Deployment project file. Look under the Customizing Web Deployment Projects heading here...

您还可以通过手动编辑Web部署项目文件来排除项目​​。在此处的自定义Web部署项目标题下查看...

http://msdn.microsoft.com/en-us/library/aa479568.aspx

#1


This SO post mentions an addin (Web Deployment addin) that should allow you to exclude items from the build process.

此SO帖子提到了一个插件(Web部署插件),它应该允许您从构建过程中排除项目。

You can also go about excluding items by manually editing the Web Deployment project file. Look under the Customizing Web Deployment Projects heading here...

您还可以通过手动编辑Web部署项目文件来排除项目​​。在此处的自定义Web部署项目标题下查看...

http://msdn.microsoft.com/en-us/library/aa479568.aspx