Closed
Description
From @AArnott on May 10, 2017 20:18
Building in a 15.2 VS Developer Prompt works fine, but when building in a 15.3 Preview prompt, I get lots of errors like this:
CSC : error CS1701: Assuming assembly reference 'System.Runtime, Version=4.0.20.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' used by 'System.IO' matches identity 'System.Runtime, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of 'System.Runtime', you may need to supply runtime policy [F:\git\DevCore\src\clr\tests\TestService\TestService.csproj]
CSC : error CS1701: Assuming assembly reference 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' used by 'StreamJsonRpc' matches identity 'System.Runtime, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of 'System.Runtime', you may need to supply runtime policy [F:\git\DevCore\src\clr\tests\TestService\TestService.csproj]
CSC : error CS1701: Assuming assembly reference 'System.Runtime, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' used by 'System.Diagnostics.TraceSource' matches identity 'System.Runtime, Version=4.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' of 'System.Runtime', you may need to supply runtime policy [F:\git\DevCore\src\clr\tests\TestService\TestService.csproj]
Repro steps
git clone https://devdiv.visualstudio.com/DefaultCollection/DevDiv/_git/DevCore
cd devcore
cd src\clr
msbuild /t:restore
msbuild
If you get other errors, you might run the "init" script in the root of the repo and try to build again.
MSBuild that is broken: 15.3.118.39484
MSBuild that works: 15.1.1012.6693
Copied from original issue: dotnet/msbuild#2088
Metadata
Metadata
Assignees
Labels
No labels