Repository navigation
Re-enable C++/CLI test coverage previously gated on VS 2026 toolset availability - #54558
Conversation
|
These were disabled in main and servicing, then reenabled in main, then codeflow disabled them again. Let's try reenabling. |
There was a problem hiding this comment.
Pull request overview
Re-enables previously skipped C++/CLI test coverage across Build/Pack/Publish test suites by removing temporary Skip metadata that was added due to missing VC toolset availability on VS 2026 Helix scout images.
Changes:
- Removed
Skip = "https://github.com/dotnet/sdk/issues/53789"fromFullMSBuildOnlyFact-gated C++/CLI Build tests. - Removed the same
Skipfrom the C++/CLI Pack and Publish coverage tests. - Re-enabled the C++-related SourceLink test by removing the temporary skip.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| test/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishACppCliProject.cs | Removes temporary skip to re-enable the C++/CLI publish scenario test. |
| test/Microsoft.NET.Pack.Tests/GivenThatWeWantToPackACppCliProject.cs | Removes temporary skip to re-enable the C++/CLI pack scenario test. |
| test/Microsoft.NET.Build.Tests/SourceLinkTests.cs | Removes temporary skip to re-enable the C++ SourceLink test. |
| test/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildACppCliProjectWithTransitiveDeps.cs | Removes temporary skips to re-enable transitive-deps C++/CLI build validations. |
| test/Microsoft.NET.Build.Tests/GivenThatWeWantToBuildACppCliProject.cs | Removes temporary skips to re-enable core C++/CLI build coverage scenarios. |
9802d42 to
d927b02
Compare
|
Looks like several of the enabled tests are failing. |
Yeah, I'm a bit confused by that as I had been able to reenable them in April with #53820. They got disabled in the flow to main for some reason (merge problem) but now they are failing again. Did the VS image regress? I'm having copilot dig into the logs to see what it finds. |
Co-authored-by: marcpopMSFT <[email protected]>
The Helix image now has Windows SDK 10.0.28000.0, which is not yet in the .NET SDK's WindowsSdkSupportedTargetPlatformVersion list. Setting WindowsTargetPlatformVersion to '10.0' auto-resolves to the latest installed SDK, causing NETSDK1140 errors. Pinning to 10.0.26100.0 decouples the tests from the Helix image's Windows SDK version. Co-authored-by: Copilot <[email protected]>
28b789e to
73d8cda
Compare
The CI Helix image (windows.amd64.vs2026.pre.scout) now ships only Visual Studio 2026, whose MSVC toolset is v145. The re-enabled C++/CLI tests failed with MSB8020 because the vcxproj files pinned v142/v143 (VS 2019/2022) build tools that are no longer installed. Removing the explicit PlatformToolset is not viable: MSBuild's DefaultPlatformToolset for these managed C++ projects falls back to v100 (VS 2010), which also isn't installed. Pinning to v145 targets the toolset actually present on the image. Co-authored-by: Copilot <[email protected]>
5046019 to
9cedd8f
Compare
…support (#54145) VS 2026's VC tooling now honors EnableManagedPackageReferenceSupport=true (set by the shared NETCoreCppClApp test asset), which sets _EnablePackageReferencesInVCProjects=true and suppresses NETSDK1116 (NoSupportCppNonDynamicLibraryDotnetCore). As a result the exe/StaticLibrary builds and the app publish now succeed instead of failing, so these negative assertions no longer hold. main already [Ignore]s the two NonLibrary tests for issue #54145; skip all three consistently. Co-authored-by: Copilot <[email protected]> Copilot-Session: ccede8c8-7d22-47f5-917f-ba205e6a7b15
|
The 54145 disablements match what's in main. The rest of the changes look good to me. |
VS 2026 Helix scout queues were failing C++/CLI coverage because tests were broadly disabled behind a temporary skip tied to missing VC tooling. This change removes those temporary disables so the C++/CLI scenarios execute again now that the image/tooling issue has been addressed.
Re-enable Build test suite C++/CLI coverage
Skipfrom allFullMSBuildOnlyFacttests in:GivenThatWeWantToBuildACppCliProjectGivenThatWeWantToBuildACppCliProjectWithTransitiveDepsSourceLinkTests.CppRe-enable Pack C++/CLI coverage
SkipfromGivenThatWeWantToPackACppCliProject.It_cannot_pack_the_cppcliproject.Re-enable Publish C++/CLI coverage
SkipfromGivenThatWeWantToPublishACppCliProject.When_referenced_by_csharp_project_it_publishes_and_runs.Change shape