Disable partial crossgen.

This will crossgen all the methods but the size of aseemblies increase.
This commit is contained in:
Sridhar Periyasamy 2016-04-14 18:36:33 -07:00
parent d6fe71d4dd
commit 59f81484bb
2 changed files with 23 additions and 9 deletions

View file

@ -99,7 +99,12 @@ namespace Microsoft.DotNet.Cli.Build
"-platform_assemblies_paths", $"{sharedFxPath};{pathToAssemblies};{addtionalPaths}"
};
ExecSilent(_crossGenPath, crossgenArgs);
var env = new Dictionary<string, string>()
{
// disable partial ngen
{ "COMPLUS_ZapDisable", "0" }
};
ExecSilent(_crossGenPath, crossgenArgs, env);
File.Delete(file);
File.Move(tempPathName, file);