Force Teamcity to Ignore tool version in a .net project

83 Views Asked by At

I am trying to build ASP.NET MVC project using Teamcity. In my .CSProj file, we have specified ToolVersion 4.0. Which means TeamCity will use MSBuild verison 4.0 to build the project. On our build server this is not available. Can I force TeamCity to ignore this setting and use a new version of MSBuild.

This is how my .csproj file looks:

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
1

There are 1 best solutions below

2
Nirav Mistry On

Yes, you can set MSBuild version in runner option.

Like this :

enter image description here