I’m using TeamCity 9.1.3. We are using MSBuild Tools 15 to build our app. Our app was targeting 4.5.2 and everything went fine. Now we’ve changed the framework inside the app to 4.6.2. The developers are able to build their app locally by using Framework 4.6.2 in Visual Studio.
But on our TeamCity server the build is failing. It seems that TeamCity is still using the old framework. We did install the 4.6.2 Framework. We have MS BuildTools 15. Our MSBuild Toolsversion is 14 and runplatform x64. This is al the same for the applications which are still using 4.5.2 framework.
What do we have to change so our TeamCity Job for this app will use 4.6.2 (by using the same buildTools 15 as our other apps which are still using 4.5.2).
We don’t see 4.6.2 inside the MSBuild version button inside our job configuration. We see BuildTools 15, BuildTools 13 and .NET Framework 4.5, 4.0, 3.5, …
I also don’t see the 4.6.2 Framework inside the Windows and Features of our Server (but it’s installed on the host). We’re working on Windows Server 2012 R2.