Skip to content

Unwind changes done during the TFM update#52512

Merged
marcpopMSFT merged 10 commits intomainfrom
marcpopMSFT-unwindTFMchanges
Jan 28, 2026
Merged

Unwind changes done during the TFM update#52512
marcpopMSFT merged 10 commits intomainfrom
marcpopMSFT-unwindTFMchanges

Conversation

@marcpopMSFT
Copy link
Member

Mostly this reenables a bunch of tests without determining if they'll pass or not.

Also updates the minimum VS version as that should be done for 10.0.2xx as well.

I also looked at removing nexttargetframework but test It_defaults_preview_AnalysisLevel_to_the_next_tfm still uses it. Someone should review that.

@marcpopMSFT marcpopMSFT requested a review from tmat as a code owner January 16, 2026 17:46
Copilot AI review requested due to automatic review settings January 16, 2026 17:46
@marcpopMSFT marcpopMSFT requested review from a team as code owners January 16, 2026 17:46
@baronfel
Copy link
Member

@marcpopMSFT I'm talking with @ericstj / @jozkee about that part of the analysislevel tests as part of solving #52487 - we're thinking that analysislevel needs two bumps:

  • when we add new TFMs we bump the meaning of 'latest' so that users get analyzer rules matching their TFM
  • when we start going stable at RC-time we then bump the meaning of preview so that we can contribute fixes across the lifetime of that SDK, but they'll only get used by folks opting into preview behaviors

so I'd expect this test to change a bit to help codify that.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request unwinds changes that were made during a Target Framework Moniker (TFM) update for .NET 11. The primary goal is to re-enable tests that were previously skipped and update minimum version requirements for Visual Studio and MSBuild.

Changes:

  • Re-enables approximately 30 test methods across multiple test files that were previously skipped due to issue #51491
  • Updates minimum Visual Studio version requirement from 17.16 to 19.0 for unsupported target framework error messages
  • Updates minimum MSBuild version from 17.14.0 to 18.0.0
  • Changes a test constant from NextTargetFrameworkVersion to CurrentTargetFramework

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
test/dotnet.Tests/CommandTests/Workload/Clean/GivenDotnetWorkloadClean.cs Incorrect change from NextTargetFrameworkVersion to CurrentTargetFramework
test/dotnet-watch.Tests/HotReload/RuntimeProcessLauncherTests.cs Re-enables 4 tests with empty parentheses syntax
test/dotnet-watch.Tests/HotReload/CompilationHandlerTests.cs Re-enables 1 test with empty parentheses syntax
test/dotnet-watch.Tests/HotReload/ApplyDeltaTests.cs Re-enables 19 tests, one with missing TestPlatforms parameter
test/dotnet-watch.Tests/CommandLine/ProgramTests.cs Re-enables 1 test
test/dotnet-watch.Tests/Browser/BrowserTests.cs Re-enables 1 test
test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmPublishIntegrationTest.cs Re-enables 3 tests
test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/WasmBuildIntegrationTest.cs Re-enables 1 test
src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.SupportedTargetFrameworks.props Updates minimum VS version for .NET 12 targeting
src/Layout/redist/minimumMSBuildVersion Updates minimum MSBuild version to 18.0.0

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
marcpopMSFT and others added 2 commits January 16, 2026 12:59
@marcpopMSFT marcpopMSFT requested a review from a team as a code owner January 16, 2026 21:00
@marcpopMSFT
Copy link
Member Author

@tmat looks like the remaining failure is a timeout in a watch test. Any ideas? I looked at multiple legs and it was the same test. Should I redisable that one for now?
The active Test Run was aborted because the host process exited unexpectedly. Please inspect the call stack above, if available, to get more information about where the exception originated from. The test running when the crash occurred: Microsoft.DotNet.Watch.UnitTests.ApplyDeltaTests.ProjectChange_UpdateDirectoryBuildPropsThenUpdateSource

@marcpopMSFT marcpopMSFT merged commit bb7a82d into main Jan 28, 2026
26 checks passed
@marcpopMSFT marcpopMSFT deleted the marcpopMSFT-unwindTFMchanges branch January 28, 2026 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants