Closed
Description
This is all after a clean build via ./build.cmd clr+libs
. Currently on VS2019 16.8 P2.1. I've experienced this with ./build.cmd -vs System.Diagnostics.EventLog
and ./build.cmd -vs System.Globalization
but I remember seeing this with a few other solutions as well.
VS tries to build TestUtilities
when it's asked to run tests. It looks like TestUtilities
targets NetCoreAppCurrent and .NET Framework 4.6.1 at the same time, and for some reason it tries to build the .NET Framework version too (and fails)? This is the error I get:
Severity Code Description Project File Line Suppression State
Error CS0006 Metadata file 'C:\Users\gotos\source\repos\runtime\artifacts\bin\System.Runtime.CompilerServices.Unsafe\net45-Debug\System.Runtime.CompilerServices.Unsafe.dll' could not be found TestUtilities (net5.0) C:\Users\gotos\source\repos\runtime\src\libraries\Common\tests\TestUtilities\CSC 1 Active
Perhaps it should exclude the net461 unless -framework net48
is specified when launching vs via command line? Not exactly sure what the issue is. I can provide the binlog if you need it.
cc @ViktorHofer