Skip to content

Commit

Permalink
-nogenwarn still needed for .NET 4.8
Browse files Browse the repository at this point in the history
  • Loading branch information
AloisKraus committed Nov 20, 2022
1 parent 25a0bfd commit c9444d5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ class Program

int Runs = 5;
public int BookDataSize = 0;
bool IsNGenWarn = true;
bool VerifyAndTouch = false;
bool TestReferenceTracking = false;
int[] NObjectsToDeSerialize = null;
Expand Down Expand Up @@ -484,6 +485,9 @@ private void Run()
case "-bookdatasize":
BookDataSize = int.Parse(NextLower());
break;
case "-nongenwarn":
IsNGenWarn = false;
break;
default:
throw new NotSupportedException($"Argument {curArg} is not valid");
}
Expand Down Expand Up @@ -533,7 +537,7 @@ private void PreChecks()
{
}

if (!IsNGenned())
if (IsNGenWarn && !IsNGenned())
{
Console.WriteLine("Warning: Not NGenned! Results may not be accurate in your target deployment.");
Console.WriteLine(@"Please execute Ngen.cmd install as Administrator to Ngen all dlls.");
Expand Down

0 comments on commit c9444d5

Please sign in to comment.