VS2010 msbuild msdeploy 部署包不执行 web.config 转换
我有两个不同的 Web 项目,正在通过 msdeploy 和 tfs 进行部署。一个对 web.config 执行转换,另一个则不执行转换。
这些项目之间的唯一区别实际上是,不工作的项目是从 v2 框架和 vs 2008 应用程序转换为 v4 框架和 vs 2010。我想不出还有什么不同。
但是当我单击“构建部署包”并查看 .zip 文件的内容(对于这两个项目)时,一个项目可以工作并且包含转换后的 web.config,而另一个(“较旧”)项目则不包含。它只显示 web.debug.config 和 web.release.config。
拜托-有什么想法吗?!
i've got two different web projects that i'm deploying via msdeploy and tfs. one performs a transformation on the web.config and the other does not.
the only difference between these projects is really the fact that the one that isn't working was converted from a v2 framework and vs 2008 app to v4 framework and vs 2010. i can't think of anything else that is different.
but when i click 'build deployment package' and look at the contents of the .zip file (for both projects) the one works and does contain the transformed web.config, and the other ('older') project does not. it only shows the web.debug.config and web.release.config.
please - any ideas?!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
检查 XML 格式的项目文件。升级后的版本恰好将 TransformWebConfigEnabled 属性设置为 false。如果不是,则比较两个项目文件files,并注意项目中涉及Web.config转换的文件是如何声明的。
Examine the project files as XML. See of the upgraded one happens to have the TransformWebConfigEnabled property set to false. If not, diff the two project files files and pay attention to how the files involved in the Web.config transformation are declared in the project.