Skip to content

Breaking change in default imports when core compiler is used from netfx builds #79907

@jjonescz

Description

@jjonescz

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.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions