Cherry-pick PR #50749 to release/10.0.1xx: Update compatibility message for targeting .NET 10.0 in Visual Studio 17.14 #51366
+72 −70
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments. Suggestions cannot be applied while the pull request is queued to merge. Suggestion cannot be applied right now. Please check back later.



This PR cherry-picks the changes from PR #50749 to the
release/10.0.1xxbranch, updating the .NET SDK compatibility warning to alert users when targeting .NET 10.0 or higher with Visual Studio 2022 17.14 or earlier versions.Changes
Compatibility Warning
_WarnWhenUsingNET9AndVSPriorTo1712to_WarnWhenUsingNET10AndVSPriorTo1817.12.0to17.15.0(MSBuild was 17.15 during VS 18 previews)9.0to10.0Resource Strings
Net9NotCompatibleWithDev1711resource string (NETSDK1223)Net10NotCompatibleWithVS17resource string (NETSDK1233):CI/CD Pipeline
.vsts-ci.yml:windows.amd64.vs2022.pre→windows.amd64.vs2026.pre.scout.vsts-pr.yml:windows.amd64.vs2022.pre.open→windows.amd64.vs2026.pre.scout.openTest Updates
GivenThatWeHaveErrorCodes.csNativeAot_hw_runs_with_PackageReference_PublishAot_is_enabledIsAotCompatible_implies_enable_analyzers(with net5.0/net6.0/net7.0)NativeAot_compiler_runs_when_PublishAot_is_enabledTesting
Related
This ensures developers targeting .NET 10.0 receive appropriate warnings about Visual Studio version compatibility, helping them understand the minimum VS version required for proper .NET 10.0 development experience.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.