public static CSharpCompilation WithFrameworkReferences(this CSharpCompilation compilation, TargetFramework targetFramework) => compilation.WithReferenceAssemblies(targetFramework.ToReferenceAssemblyKind());
public static CSharpCompilation WithFrameworkReferences(this CSharpCompilation compilation, TargetFramework targetFramework) => compilation.WithReferenceAssemblies(targetFramework.ToReferenceAssemblyKind());