We're trying to get a vNext project building on TeamCity 9.16 - the project is using the dnx451 and dnxcore50 frameworks.
When TeamCity is running dnu build
for DNX,Version=v4.5.1 it's erroring when trying to build System.Configuration 4.0.0
with the following error:
DNX,Version=v4.5.1 error CS0012: The type 'Action<>' is defined in an assembly that is not referenced. You must add a reference to assembly 'mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e, Retargetable=Yes
However running dnu build
from the command line when logged on to the machine as the TeamCity build agent is successful (after running dnvm upgrade
)
I suspect that this might be something to do with TeamCity and Paths but am at a loss as how to proceed.