Add compatibility suppressions for NameOutput rename in Azure.Network#16022
Merged
eerhardt merged 1 commit intomicrosoft:mainfrom Apr 10, 2026
Merged
Add compatibility suppressions for NameOutput rename in Azure.Network#16022eerhardt merged 1 commit intomicrosoft:mainfrom
eerhardt merged 1 commit intomicrosoft:mainfrom
Conversation
The NameOutput property was renamed to NameOutputReference in microsoft#16004, and the baseline version was bumped in microsoft#16008. Add CP0002 suppressions for the removed NameOutput getters on the 5 affected network resources. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 16022Or
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 16022" |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a package validation suppression file for Aspire.Hosting.Azure.Network to silence CP0002 compatibility diagnostics triggered by the earlier NameOutput → NameOutputReference rename after the baseline version bump.
Changes:
- Introduces
CompatibilitySuppressions.xmlinAspire.Hosting.Azure.Network. - Suppresses CP0002 for the removed
get_NameOutputaccessor on the affected public resource types.
karolz-ms
approved these changes
Apr 10, 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
Add
CompatibilitySuppressions.xmlforAspire.Hosting.Azure.Networkto suppress CP0002 package validation diagnostics caused by theNameOutput→NameOutputReferencerename in #16004, after the baseline version was bumped in #16008.The following resources have suppressions for the removed
NameOutputgetter:AzureNatGatewayResourceAzureNetworkSecurityGroupResourceAzurePrivateEndpointResourceAzurePublicIPAddressResourceAzureVirtualNetworkResourceThis is acceptable because this library is still Experimental.
Checklist
<remarks />and<code />elements on your triple slash comments?aspire.devissue: