Clean vcpkg artifacts on solution clean#6339
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
What's the scenario you're thinking about that may require cleaning the vcpkgs? |
Take for example #6301 - That was only discovered because I removed the vcpkgs. In most workflows, I would expect "Clean" to remove all build artifacts and produce a 100% brand new build - which wasn’t the case. While a simple rebuild would skip updating the vcpkgs, if I am explicitly running a clean, I would have thought that the vcpkgs would have also been cleaned up too - regardless of if there were port changes or not. In my mind, Clean means to perform the next build as if it were the first build the system ever ran |
📖 Description
Add a
CleanVcpkgtarget insrc\vcpkg.propsso Visual Studio Clean Solution removes repository-local vcpkg artifacts.The target:
$(VcpkgInstalledDir)(src\vcpkg_installed\)src\VcpkgPortOverlay\.createdso overlay ports regenerate on next buildAlso adds an XML comment block explaining why this cleanup is necessary.
🔗 References
Resolves #6338
🔍 Validation
Manual local verification of MSBuild target wiring only.
✅ Checklist
📋 Issue Type
Assisted-by: GitHub Copilot
Microsoft Reviewers: Open in CodeFlow