Remove crossgenning mscorlib on Unix platforms, since the CoreCLR nuget package now carries the crossgenned mscorlib on non-Windows platforms.

This commit is contained in:
Eric Erhardt 2016-03-14 15:08:03 -05:00
parent 0de7a4c934
commit 3bfd86b254

View file

@ -335,7 +335,7 @@ namespace Microsoft.DotNet.Cli.Build
private static List<string> GetAssembliesToCrossGen()
{
var list = new List<string>
return new List<string>
{
"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;
}
}
}