Quantcast
Channel: MSBuild forum
Viewing all articles
Browse latest Browse all 2763

TFS build builds solution with wrong configuration

$
0
0

Recently we upgraded from TFS 2013 to TFS 2017 and had therefor create new build definitions on our build server. I have created a new build definition that builds several solutions. The build should be Release|Any CPU. Instead the solution is built in Debug, or better to say, it seems to be different for different projects within that solutions.

I think I configured the build definition correct. When starting the build with verbose logging I can see this:

2016-12-16T11:19:18.8671822Z ##[section]Starting: Build solution $/ABC_NX/ABC_Main/Templates.sln
...
2016-12-16T11:19:19.8202945Z ##[debug]Loaded 7 strings.
2016-12-16T11:19:19.8359193Z ##[debug]INPUT_VSVERSION: '14.0'
2016-12-16T11:19:19.8359193Z ##[debug]INPUT_MSBUILDARCHITECTURE: 'x86'
2016-12-16T11:19:19.8359193Z ##[debug]INPUT_MSBUILDARGS (empty)
2016-12-16T11:19:19.8359193Z ##[debug]INPUT_SOLUTION: 'd:\w\2\s\Templates.sln'
2016-12-16T11:19:19.8359193Z ##[debug]INPUT_PLATFORM: 'any cpu'
2016-12-16T11:19:19.8359193Z ##[debug]INPUT_CONFIGURATION: 'release'
2016-12-16T11:19:19.8359193Z ##[debug]INPUT_CLEAN: 'true'
2016-12-16T11:19:19.8359193Z ##[debug] Converted to bool: True
2016-12-16T11:19:19.8515438Z ##[debug]INPUT_MAXIMUMCPUCOUNT: 'false'
2016-12-16T11:19:19.8515438Z ##[debug] Converted to bool: False
2016-12-16T11:19:19.8515438Z ##[debug]INPUT_RESTORENUGETPACKAGES: 'false'
2016-12-16T11:19:19.8515438Z ##[debug] Converted to bool: False
2016-12-16T11:19:19.8515438Z ##[debug]INPUT_LOGPROJECTEVENTS: 'true'
2016-12-16T11:19:19.8515438Z ##[debug] Converted to bool: True
2016-12-16T11:19:19.8515438Z ##[debug]INPUT_CREATELOGFILE: 'false'
2016-12-16T11:19:19.8515438Z ##[debug] Converted to bool: False
2016-12-16T11:19:19.8515438Z ##[debug]INPUT_VSLOCATION (empty)
2016-12-16T11:19:19.8515438Z ##[debug]INPUT_MSBUILDLOCATION (empty)
2016-12-16T11:19:19.8671684Z ##[debug]INPUT_MSBUILDVERSION (empty)

So, for me it looks like it should build in Release|Any CPU. In the solution itself I can see in the VS Confiugration Manager the "RELEASE" configuration on the solution should build each project also as "RELEASE".

This is how we configured the TFS build:

Any idea what can cause this problem?


Viewing all articles
Browse latest Browse all 2763


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>