自动发布版本使用TFS和的MSBuild没有调试文件和Web.config文件转换 [英] Automated Release Builds using TFS and MSBuild without debug files and Web.config transforms

查看:753
本文介绍了自动发布版本使用TFS和的MSBuild没有调试文件和Web.config文件转换的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经建立了持续集成的Team Foundation Server上的ASP .NET MVC应用程序,它是建立正确的文件夹中生成服务器上。

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.

我遇到的问题是,我不能得到适当的发布版本。我已经修改了构建定义,以便在处理它说配置构建 - 任何CPU |发布,但它仍然包括与每个.dll文件的.pdb文件,再加上它包括Web.Release.config和Web.Debug.config。

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.

我在做什么错了?

编辑:这是在它的配置文件转换文件列表。此文件夹是一个名为_PublishedWebsites文件夹,这又是在Drop文件夹中。

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.

推荐答案

在您的项目属性的生成选项卡上,单击高级按钮,并指定调试信息无。

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". If you don't want them, change that to "None".

这篇关于自动发布版本使用TFS和的MSBuild没有调试文件和Web.config文件转换的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆