Disable partial NGEN.

This commit is contained in:
Brian Robbins 2020-03-11 17:38:41 -07:00
parent 43a0d8dd4a
commit e87acd73ac

View file

@ -13,6 +13,13 @@ namespace Microsoft.DotNet.Build.Tasks
{
public sealed class Crossgen : ToolTask
{
public Crossgen()
{
// Disable partial NGEN to avoid excess JIT-compilation.
// The intention is to pre-compile as much as possible.
EnvironmentVariables = new string[] { "COMPlus_PartialNGen=0" };
}
[Required]
public string SourceAssembly { get;set; }