diff --git a/scripts/dotnet-cli-build/CompileTargets.cs b/scripts/dotnet-cli-build/CompileTargets.cs index 517a30ceb..060ead06c 100644 --- a/scripts/dotnet-cli-build/CompileTargets.cs +++ b/scripts/dotnet-cli-build/CompileTargets.cs @@ -335,7 +335,7 @@ namespace Microsoft.DotNet.Cli.Build private static List GetAssembliesToCrossGen() { - var list = new List + return new List { "System.Collections.Immutable.dll", "System.Reflection.Metadata.dll", @@ -345,15 +345,6 @@ namespace Microsoft.DotNet.Cli.Build "csc.dll", "vbc.dll" }; - - // mscorlib is already crossgenned on Windows - if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) - { - // mscorlib has to be crossgenned first - list.Insert(0, "mscorlib.dll"); - } - - return list; } } }