Force Microsoft Build Tools 2015 to include mscorlib for the targeted version of the framework instead of 4.6
问题 I have written an application in Visual Studio 2015 that uses C# 6.0 features and targets .NET 4.5.2. When I build it using Microsoft Build Tools 2015, which is what is done by our TeamCity server, the resulting bin folder also contains a copy of mscorlib.dll . The problem here is that the mscorlib.dll being copied is the .NET 4.6 DLL, which causes problems at runtime. I have replaced my call to string.Format() with the new string interpolation syntax to work around the problem. That, however