Skip to content

SignalR App Host section missing NuGet package #1649

@stuartleaver

Description

@stuartleaver

Type of issue

Missing information

Description

When following the .NET Aspire support for Azure SignalR Service documentation, I was getting the following error:

error CS1061: 'IDistributedApplicationBuilder' does not contain a definition for 'AddAzureSignalR' and no accessible extension method 'AddAzureSignalR' accepting a first argument of type 'IDistributedApplicationBuilder' could be found (are you missing a using directive or an assembly reference?)

After reading the IDistributedApplicationBuilder Interface documentation, I realised that I needed to add the Aspire.Hosting.Azure.SignalR package.

Having looked at the "App host usage" sections for Blob storage and Key Vault, they both mention adding the relevant Aspire.Hosting.Azure...... package to adding support to IDistributedApplicationBuilder.

Under the App host section for SignalR, could a mention to add the Aspire.Hosting.Azure.SignalR package be added similar to the other services?

Page URL

https://learn.microsoft.com/en-us/dotnet/aspire/real-time/azure-signalr-scenario?tabs=dotnet-cli

Content source URL

https://github.com/dotnet/docs-aspire/blob/main/docs/real-time/azure-signalr-scenario.md

Document Version Independent Id

8a7a136b-fd99-5767-c43a-522235526e3f

Platform Id

519f013d-4885-b2bc-909a-ac3a59b5c8e4

Article author

IEvangelist

Related Issues

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions