从msbuild排除配置文件

从msbuild排除配置文件

本文介绍了从msbuild排除配置文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我无法从部署中排除开发配置文件.我收到错误消息:

Hi all, I am haveing trouble excluding development configuration files from deployment. I get an error:

错误MSB3021:无法复制文件"Web.config".到"C:\ TeamCity \ NightlyBuilds \ 2010-09-21 \ Web.config".找不到文件"Web.config".

error MSB3021: Unable to copy file "Web.config" to "C:\TeamCity\NightlyBuilds\2010-09-21\Web.config". Could not find file 'Web.config'.

我认为此错误是因为我也已从源代码管理中排除了该文件,但我不知道为什么CI服务器(Team City)正在寻找它.这是我最喜欢的msBuild xml:
I assume this error is because I have also excluded the file from source control but I do not know why the CI server (Team City) is looking for it. here is my relavent msBuild xml:

推荐答案

我已经创建了一个项目文件,其中包含您的代码,它可以正常工作,并且不会引发任何错误消息.因此,我猜想此错误消息会抛出在您身边的其他地方.其他地方是否使用Web.config?以及为什么要排除Web.config?

I have created a project file with your code in my side, it works fine, and it does not throw any error message. So I guess this error message is thrown in other place in your side. Does other place use Web.config? And why do you want to exclude Web.config?

最好的问候,
南希

Best Regards,
Nancy


这篇关于从msbuild排除配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 09:37