fix: %(AdditionalDependencies) metadata typo in cpp-app/cpp-lib templates and package projects#15720
Merged
acoates-ms merged 2 commits intomicrosoft:mainfrom Mar 4, 2026
Conversation
Contributor
Author
|
@microsoft-github-policy-service agree |
Contributor
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
Contributor
|
You 'll need to run |
Contributor
Author
Cheers, I've added one. |
Contributor
|
/azp run |
|
Azure Pipelines successfully started running 2 pipeline(s). |
acoates-ms
approved these changes
Mar 4, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
Type of Change
Why
The
<AdditionalDependencies>linker property in thecpp-appandcpp-libtemplates (and all derived package projects) contained a misspelling:%(AdditionalDependenices)instead of%(AdditionalDependencies).MSBuild silently resolves unknown item metadata references to an empty string with no warning or error, so any additional link dependencies inherited from parent property sheets were being silently dropped at link time.
What
Corrected the metadata reference from
%(AdditionalDependenices)to%(AdditionalDependencies)in the<Link>item group of all affected.vcxprojfiles.Screenshots
N/A
Testing
N/A
Changelog
Should this change be included in the release notes: yes
Fixed a silent MSBuild linker bug in the
cpp-appandcpp-libtemplates where a typo in%(AdditionalDependencies)caused inherited link dependencies to be silently dropped. Projects already scaffolded from these templates should apply the same correction to their.vcxprojfiles.Microsoft Reviewers: Open in CodeFlow