Skip to content

Remove stale MSBuild references#1463

Merged
bmehta001 merged 1 commit into
microsoft:mainfrom
bmehta001:bhamehta/msbuild-stale-reference-cleanup
Jun 5, 2026
Merged

Remove stale MSBuild references#1463
bmehta001 merged 1 commit into
microsoft:mainfrom
bmehta001:bhamehta/msbuild-stale-reference-cleanup

Conversation

@bmehta001
Copy link
Copy Markdown
Contributor

This is split out of #1416 to keep the review surface small and focused.

Changes:

  • Remove stale Visual Studio project/filter entries for files that no longer exist.
  • Keep the Windows toolset fallback mapping current for VS 2026.
  • Avoid forcing future Visual Studio versions into the VS 2022 toolset path.

Validation performed locally:

  • CRLF-aware git diff --check
  • MSBuild property evaluation confirmed VisualStudioVersion=18.0 resolves to v145

Split the stale Visual Studio wiring cleanup into a smaller review slice. Remove project and filter entries for files that no longer exist, and keep platform toolset fallback behavior current for VS 2026 without forcing future toolsets to older defaults.

Files changed: Solutions/before.targets, Solutions/build.MIP.props, Visual Studio project and filter files

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@bmehta001 bmehta001 requested a review from a team as a code owner June 5, 2026 03:14
@bmehta001 bmehta001 self-assigned this Jun 5, 2026
@bmehta001 bmehta001 requested a review from Copilot June 5, 2026 03:19
Copy link
Copy Markdown
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 PR cleans up Windows/MSBuild project metadata by removing references to files that no longer exist and modernizing the Visual Studio toolset fallback logic so newer VS versions don’t get forced into an older toolset mapping.

Changes:

  • Removed stale <ClInclude> / filter entries for deleted test and sample files.
  • Updated MSBuild toolset fallback logic to map VisualStudioVersion >= 18.0 to v145, while keeping explicit mappings for older VS versions.
  • Avoided relying on DefaultPlatformToolset in before.targets (imported too early), and used version-based mapping there instead.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tests/unittests/UnitTests.vcxproj Removes a stale sanitizer test file entry from the unit test project.
tests/functests/FuncTests.vcxproj.filters Removes a stale filter entry for a deleted mock header.
tests/functests/FuncTests.vcxproj Removes a stale include entry for a deleted mock header.
Solutions/build.MIP.props Updates toolset selection to prefer DefaultPlatformToolset and adds explicit VS-version mappings up through VS 18.0.
Solutions/before.targets Reworks toolset fallback mapping using VisualStudioVersion comparisons (including VS 18.0 → v145).
lib/shared/Shared.vcxitems.filters Removes a stale shared-items filter entry for a deleted header.
lib/shared/Shared.vcxitems Removes a stale shared-items include entry for a deleted header.
examples/cpp/SampleCppMini/SampleCppMini.vcxproj.filters Removes a stale filter entry for a missing targetver.h in the sample.
examples/cpp/SampleCppMini/SampleCppMini.vcxproj Removes a stale project include entry for a missing targetver.h in the sample.
examples/cpp/SampleCpp/SampleCpp.vcxproj.filters Removes a stale filter entry for a missing targetver.h in the sample.
examples/cpp/SampleCpp/SampleCpp.vcxproj Removes a stale project include entry for a missing targetver.h in the sample.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@bmehta001 bmehta001 merged commit 1c17d5c into microsoft:main Jun 5, 2026
26 of 27 checks passed
@bmehta001 bmehta001 deleted the bhamehta/msbuild-stale-reference-cleanup branch June 5, 2026 16: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.

3 participants