Set VSDebugger_ValidateDotnetDebugLibSignatures (#82710)
authorViktor Hofer <viktor.hofer@microsoft.com>
Mon, 27 Feb 2023 16:55:41 +0000 (17:55 +0100)
committerGitHub <noreply@github.com>
Mon, 27 Feb 2023 16:55:41 +0000 (17:55 +0100)
When using the `-vs` switch, disable signature validation. See https://github.com/dotnet/runtime/blob/main/docs/workflow/building/libraries/README.md#debugging for more details

eng/build.ps1

index aed36f5..6bf2dc7 100644 (file)
@@ -218,6 +218,9 @@ if ($vs) {
 
   # Put our local dotnet.exe on PATH first so Visual Studio knows which one to use
   $env:PATH=($env:DOTNET_ROOT + ";" + $env:PATH);
+  
+  # Disable .NET runtime signature validation errors which errors for local builds
+  $env:VSDebugger_ValidateDotnetDebugLibSignatures=0;
 
   if ($runtimeConfiguration)
   {