问题描述
大家好,我无法从部署中排除开发配置文件.我收到错误消息:
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'.
推荐答案
我已经创建了一个项目文件,其中包含您的代码,它可以正常工作,并且不会引发任何错误消息.因此,我猜想此错误消息会抛出在您身边的其他地方.其他地方是否使用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排除配置文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!