v2.26
Problem: We are targeting a framework not available on build machine (using TeamCity). This results in error
Code:
The reference assemblies for framework ".NETFramework,Version=v4.5.2" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend.
Solution with MSBuild: we use MSBuild parameter
FrameworkPathOverride to be %DotNetFrameworkTargetingPack4.5.1_Path% in build step configuration System Properties (same alternative to use /p:FrameworkPathOverride=..) and it compiles fine.
With NCrunch.exe I do not now how to solve this, is there a way I can pass build parameters to it somehow?
Thanks.