Skip to content

Remove stale MSBuild project entries#1444

Merged
bmehta001 merged 4 commits into
microsoft:mainfrom
bmehta001:bhamehta/stale-msbuild-project-entries
May 22, 2026
Merged

Remove stale MSBuild project entries#1444
bmehta001 merged 4 commits into
microsoft:mainfrom
bmehta001:bhamehta/stale-msbuild-project-entries

Conversation

@bmehta001
Copy link
Copy Markdown
Contributor

Summary

  • Remove stale Visual Studio project/filter entries for files no longer carried in the repo, including zlib infblock.h/infcodes.h/infutil.h metadata
  • Fix stale sample project references and a stale gtest filter path
  • Keep optional module imports guarded by Exists(...) untouched

Validation

  • Built Windows Release x64 with MSBuild using PlatformToolset=v145
  • Ran UnitTests.exe: 460 tests passed
  • Ran FuncTests.exe: 45 tests passed

Clean project and filter wiring that points at removed or generated files so Visual Studio metadata matches the files carried in the repo.

Files changed:

- Solutions/Clienttelemetry/Clienttelemetry.vcxitems

- examples/cpp project and filter files

- lib/pal and lib/tracing shared item files

- tests/googletest filter metadata

- third_party/Solutions/zlib/vc14/zlibvc.vcxproj

- tools/ports/mstelemetry/v142-build.patch

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@bmehta001 bmehta001 requested a review from a team as a code owner May 22, 2026 07:34
@bmehta001 bmehta001 self-assigned this May 22, 2026
The commented PackageCertificateKeyFile and PackageCertificateThumbprint
lines document how to enable Appx package signing if a developer provides
a TestApp.pfx. Restore them so the sample retains its re-enablement
instructions; only the unconditional None Include for TestApp.pfx
(which referenced a missing file) needed to go.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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 Visual Studio/MSBuild project and filter metadata by removing references to files that no longer exist in the repo and correcting a few stale relative paths, improving Windows build hygiene and solution usability.

Changes:

  • Removed stale zlib header entries (e.g., infblock.h/infcodes.h/infutil.h) from MSBuild project metadata.
  • Fixed stale/incorrect relative paths in sample project references, tracing SHA1 shared-items references, and the gtest filters entry.
  • Pruned stale entries from various .filters / .vcxitems files to better match the current repository contents.

Reviewed changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
tools/ports/mstelemetry/v142-build.patch Drops removed zlib header references from the v142 port patch metadata.
third_party/Solutions/zlib/vc14/zlibvc.vcxproj Removes zlib includes for headers not present in the repo.
tests/googletest/googletest/msvc/gtest.vcxproj.filters Updates gtest-all.cc filter path to match the referenced source location.
Solutions/Clienttelemetry/Clienttelemetry.vcxitems.filters Removes stale shared-items filter entries for headers no longer present.
Solutions/Clienttelemetry/Clienttelemetry.vcxitems Removes stale shared-items entries for headers no longer present.
lib/tracing/api/tracing-api.vcxitems Fixes relative paths for bundled sha1 sources/headers.
lib/pal/universal/universal.vcxitems.filters Removes conditional UTC module filter entries (optional submodule integration).
lib/pal/desktop/desktop.vcxitems.filters Removes conditional UTC module filter entries (optional submodule integration).
examples/cpp/SampleCppUWP/SampleCppUWP.vcxproj.filters Removes stale TestApp.pfx entry from filters.
examples/cpp/SampleCppUWP/SampleCppUWP.vcxproj Removes stale TestApp.pfx item entry from the project.
examples/cpp/SampleCpp/SampleCpp.vcxproj Fixes stale relative paths for referenced projects (win32-lib/sqlite).
examples/cpp/EventSender/EventSender.vcxproj.filters Removes stale/non-project items from filters.
examples/cpp/EventSender/EventSender.vcxproj Fixes stale relative paths for referenced projects (win32-lib/sqlite).

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

Comment thread lib/pal/universal/universal.vcxitems.filters
Comment thread lib/pal/desktop/desktop.vcxitems.filters
bmehta001 and others added 2 commits May 22, 2026 10:19
The matching desktop.vcxitems and universal.vcxitems still include the
UTC module sources via Condition="Exists(...)". Removing the parallel
entries from the .filters files would orphan those sources in Visual
Studio Solution Explorer when the lib/modules submodule is present.
Restore the conditional ItemGroups so solution organization stays
correct when the optional module exists.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
FuncTests.vcxproj uses $(ProjectDir)..\..\lib\modules\signals\tests\functests\SignalsFuncTests.cpp while the parallel filter entry was missing the $(ProjectDir) prefix, so when the signals submodule is present Visual Studio cannot associate the source file with the Source Files filter. Align the filter Include with the project Include.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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

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

@bmehta001 bmehta001 merged commit 0e2d728 into microsoft:main May 22, 2026
25 of 27 checks passed
@bmehta001 bmehta001 deleted the bhamehta/stale-msbuild-project-entries branch May 22, 2026 17:33
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