Automated Release Builds using TFS and MSBuild wit

2019-05-06 21:40发布

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.

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.

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.

Filelist

1条回答
Juvenile、少年°
2楼-- · 2019-05-06 22:41

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".

查看更多
登录 后发表回答