简体   繁体   English

使用 TFS 和 MSBuild 自动发布构建,没有调试文件和 Web.config 转换

[英]Automated Release Builds using TFS and MSBuild without debug files and Web.config transforms

I have set up continuous integration for an ASP .NET MVC application on Team Foundation Server and it is building to the correct folders on a build server.我已经为 Team Foundation Server 上的 ASP .NET MVC 应用程序设置了持续集成,它正在构建到构建服务器上的正确文件夹。

The issue I am having is that I can't get a proper release build.我遇到的问题是我无法获得正确的发布版本。 I have modified the build definition so that under Process it says Configurations to Build - Any CPU|Release but it still includes the.pdb files with each.dll, plus it includes both Web.Release.config and Web.Debug.config.我已经修改了构建定义,以便在 Process 下显示Configurations to Build - Any CPU|Release ,但它仍然包含带有 each.dll 的 .pdb 文件,另外它还包含 Web.Release.config 和 ZC6E190B2846333CCEE8.9EDebug.950.config 和 ZC6E190B284634DA

What am I doing wrong?我究竟做错了什么?

EDIT: Here is the file list with the config transformation files in it.编辑:这是其中包含配置转换文件的文件列表。 This folder is inside a folder called _PublishedWebsites, which in turn is in the Drop folder.此文件夹位于名为 _PublishedWebsites 的文件夹中,而该文件夹又位于 Drop 文件夹中。

文件列表

In your project properties, on the "Build" tab, click the "Advanced" button and specify "none" for Debug info.在您的项目属性中,在“构建”选项卡上,单击“高级”按钮并为“调试信息”指定“无”。

The Web.*.config files are copied to the drop folder because, by default they are set with a Build Action of "Content". Web.*.config 文件被复制到放置文件夹,因为默认情况下它们设置为“内容”的构建操作。 If you don't want them, change that to "None".如果您不想要它们,请将其更改为“无”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM