Skip to content

Multi-language integration authoring docs reference a non-existent Aspire.Hosting.Integration.Analyzers NuGet package #981

Closed

Description

Summary

The Multi-language integrations authoring guide instructs readers to add a PackageReference to Aspire.Hosting.Integration.Analyzers:

<PackageReference Include="Aspire.Hosting.Integration.Analyzers" Version="13.3.0">
    <PrivateAssets>all</PrivateAssets>
    <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>

That package does not exist on NuGet. The Aspire.Hosting.Integration.Analyzers.csproj project in microsoft/aspire sets <IsPackable>false</IsPackable> — it builds, but it never ships as a standalone NuGet.

What actually happens

The analyzer ships embedded inside the Aspire.Hosting NuGet package via the IncludeIntegrationAnalyzerInPackage target in Aspire.Hosting.csproj, and is activated by an MSBuild flag in buildTransitive/Aspire.Hosting.targets:

<PropertyGroup>
  <EnableAspireIntegrationAnalyzers Condition="''$(EnableAspireIntegrationAnalyzers)'' == ''''">false</EnableAspireIntegrationAnalyzers>
</PropertyGroup>

<ItemGroup Condition="''$(EnableAspireIntegrationAnalyzers)'' == ''true''">
  <Analyzer Include="$(_AspireIntegrationAnalyzerAssembly)" Condition="Exists(''$(_AspireIntegrationAnalyzerAssembly)'')" />
</ItemGroup>

So consumers do not install a separate package — they reference Aspire.Hosting (which they already do when authoring a hosting integration) and opt in by setting the MSBuild property:

<PropertyGroup>
  <EnableAspireIntegrationAnalyzers>true</EnableAspireIntegrationAnalyzers>
</PropertyGroup>

Impact

Anyone who follows the current guide and tries to restore Aspire.Hosting.Integration.Analyzers will hit NU1101 (package not found), and even if they could resolve it they would not actually get the analyzer running for [AspireExport] validation.

Proposed fix

Replace the Install the analyzer section in src/frontend/src/content/docs/extensibility/multi-language-integration-authoring.mdx to:

  • Drop the fake PackageReference.
  • Tell readers the analyzer is part of Aspire.Hosting.
  • Show the <EnableAspireIntegrationAnalyzers>true</EnableAspireIntegrationAnalyzers> opt-in.
  • Also update the diagnostics table heading prose that names the (non-existent) package.

Activity

  1. added a commit that references this issue on May 26, 2026
    b43ada5
  2. added a commit that references this issue on Jun 1, 2026
    814d305
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions