Skip to content

Commit 7c9015b

Browse files
baronfelCopilot
andauthored
set env var to rollback revocation check change in .NET 10 previews (#49814)
Co-authored-by: Copilot <[email protected]>
1 parent 2a5ac74 commit 7c9015b

File tree

4 files changed

+5
-1
lines changed

4 files changed

+5
-1
lines changed

build.cmd

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ if %errorlevel%==0 (
77
REM skip crossgen for inner-loop builds to save a ton of time
88
set skipFlags="/p:SkipUsingCrossgen=true /p:SkipBuildingInstallers=true"
99
)
10+
set DOTNET_SYSTEM_NET_SECURITY_NOREVOCATIONCHECKBYDEFAULT=true
1011
powershell -NoLogo -NoProfile -ExecutionPolicy ByPass -command "& """%~dp0eng\common\build.ps1""" -restore -build -msbuildEngine dotnet %skipFlags% %*"
1112
exit /b %ErrorLevel%

build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,5 @@ if [[ "$@" != *"-pack"* ]]; then
1313
skipFlags="/p:SkipUsingCrossgen=true /p:SkipBuildingInstallers=true"
1414
fi
1515

16+
export DOTNET_SYSTEM_NET_SECURITY_NOREVOCATIONCHECKBYDEFAULT="true"
1617
. "$ScriptRoot/eng/common/build.sh" --build --restore $skipFlags "$@"

eng/dogfood.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ try {
5252
# Avoid downloading Microsoft.Net.Sdk.Compilers.Toolset from feed
5353
# Locally built SDK package version is Major.Minor.0-dev, which won't be available.
5454
$env:BuildWithNetFrameworkHostedCompiler = $false
55+
$env:DOTNET_SYSTEM_NET_SECURITY_NOREVOCATIONCHECKBYDEFAULT=$true
5556

5657
if ($command -eq $null -and $env:DOTNET_SDK_DOGFOOD_SHELL -ne $null) {
5758
$command = , $env:DOTNET_SDK_DOGFOOD_SHELL

eng/dogfood.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ export MicrosoftNETBuildExtensionsTargets="$artifacts_dir/bin/$configuration/Sdk
2626
export PATH=$testDotnetRoot:$PATH
2727
export DOTNET_ROOT=$testDotnetRoot
2828
export DOTNET_ADD_GLOBAL_TOOLS_TO_PATH=0
29-
export PS1="(dogfood) $PS1"
29+
export PS1="(dogfood) $PS1"
30+
export DOTNET_SYSTEM_NET_SECURITY_NOREVOCATIONCHECKBYDEFAULT="true"

0 commit comments

Comments
 (0)