Skip to content

Change Analyzer references to be consistent#15176

Merged
eerhardt merged 4 commits intomicrosoft:release/13.2from
eerhardt:FixAnalyzerReference
Mar 12, 2026
Merged

Change Analyzer references to be consistent#15176
eerhardt merged 4 commits intomicrosoft:release/13.2from
eerhardt:FixAnalyzerReference

Conversation

@eerhardt
Copy link
Copy Markdown
Member

We have 2 analyzers, but we build and pack them differently. We should use the same pattern.

We have 2 analyzers, but we build and pack them differently. We should use the same pattern.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 12, 2026

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 15176

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 15176"

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 aims to make how Aspire.Hosting.Integration.Analyzers is built/packed consistent with the pattern used elsewhere by switching from an explicit MSBuild Build invocation to a ProjectReference-driven build graph.

Changes:

  • Adds a ProjectReference to Aspire.Hosting.Integration.Analyzers.csproj with ReferenceOutputAssembly="false" to ensure it is built.
  • Simplifies the pack hook target by removing the explicit MSBuild ... Targets="Build" call and only using GetTargetPath to locate the analyzer output for packaging.

Remove unnecessary MSBuild attributes from the analyzer ProjectReference.

Introduce SkipAspireIntegrationAnalyzersReference MSBuild property to control automatic referencing of Aspire.Hosting.Integration.Analyzers. Replace hardcoded project exclusions with property-based logic for improved maintainability. Set the property in AppHost and RemoteHost projects, and for Roslyn components.
joperezr and others added 2 commits March 12, 2026 14:22
…M image

The unofficial pipeline was still using the now-removed
windows.vs2022preview.amd64 image, causing the build stage to be
skipped. Updated to match the official pipeline's image.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The unofficial pipeline was missing the Node.js, yarn, and vsce
installation steps that the official pipeline has before calling the
BuildAndTest template. Since BuildAndTest uses /p:BuildExtension=true,
the VS Code extension build requires these tools.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@eerhardt eerhardt requested a review from joperezr March 12, 2026 20:09
@eerhardt eerhardt merged commit 5e8c12d into microsoft:release/13.2 Mar 12, 2026
500 of 503 checks passed
@eerhardt eerhardt deleted the FixAnalyzerReference branch March 12, 2026 20:10
@joperezr
Copy link
Copy Markdown
Member

Thanks Eric!

@dotnet-policy-service dotnet-policy-service bot added this to the 13.2 milestone Mar 12, 2026
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