Skip to content

Remove DOTNET_ROLL_FORWARD environment variable from .NET 10 and 11 SDK images#7256

Merged
lbussell merged 2 commits into
nightlyfrom
lbussell/roll-forward
Jun 23, 2026
Merged

Remove DOTNET_ROLL_FORWARD environment variable from .NET 10 and 11 SDK images#7256
lbussell merged 2 commits into
nightlyfrom
lbussell/roll-forward

Conversation

@lbussell

@lbussell lbussell commented Jun 22, 2026

Copy link
Copy Markdown
Member

This PR fixes #7255.

lbussell and others added 2 commits June 22, 2026 14:12
Extend EnvironmentVariableInfo with a symmetric Require/Forbid factory API so tests can assert that a variable must be set or must not be set. Use it to verify SDK images do not define DOTNET_ROLL_FORWARD, which currently fails for .NET 10 and 11 images.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The SDK images set DOTNET_ROLL_FORWARD=Major globally as a temporary workaround for PowerShell/PowerShell#20685, until PowerShell shipped on the .NET 10 runtime. It was unintentionally left in. Because the variable is global, it affects unrelated workloads such as dotnet test, silently rolling older-TFM assemblies forward onto the newer installed runtime and masking compatibility failures.

Remove the workaround from the SDK env template and regenerate the .NET 10 and .NET 11 SDK Dockerfiles and approved baselines.

Fixes #7255

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@lbussell lbussell requested review from a team, joperezr and wiktork as code owners June 22, 2026 21:58
@lbussell lbussell changed the title Remove DOTNET Remove DOTNET_ROLL_FORWARD environment variable from .NET 10 and 11 SDK images Jun 22, 2026
@lbussell lbussell requested a review from mthalman June 23, 2026 01:28
@lbussell lbussell merged commit 4b9de87 into nightly Jun 23, 2026
148 checks passed
@github-actions github-actions Bot added the needs-backport PR that should be backported to another branch label Jun 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-backport PR that should be backported to another branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants