Core compiler is now used by default even in netfx builds. That results in a breaking change in behavior due to this:
|
/// <summary> |
|
/// Returns the directory that contains mscorlib, or null when running on CoreCLR. |
|
/// </summary> |
|
public static string? GetSystemSdkDirectory() |
|
{ |
|
return RuntimeHostInfo.IsCoreClrRuntime |
|
? null |
|
: RuntimeEnvironment.GetRuntimeDirectory(); |
|
} |
Workaround: set msbuild property RoslynCompilerType=FrameworkPackage.