Blazor Aspire MS Identity combination
- Dominant language
- C#
- Stars
- 6.3k
- Forks
- 991
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 196
Description
Hi all,
Just a general question, maybe not directly related to Aspire, but is the following combination not valid?
- Blazor Web App (auto render per client)
- Auth: MS Identity
- Aspire (preview 5)
Reasons for asking:
1. MS Identity Web not available in the drop down for this Web App configuration. How then can I add MS Identity as I need to use Entra ID
2. Adding Aspire orchestration starts me with just a blank solution, I manually have to add each project.
3. When adding Aspire orchestration on the BlazorApp it shows a dialog "The .NET Aspire orchestrator project BlazorApp1.AppHost is up to date". But no changes were made to either the blazor app nor the appHost projects.

4. If I manually add a reference from the AppHost to the project, it recognises the project, allowing the lines
``` cs
var builder = DistributedApplication.CreateBuilder(args);
var cache = builder.AddRedis("cache");
var apiService = builder.AddProject("webapi1");
builder.AddProject("blazorfrontend")
.WithReference(cache)
.WithReference(apiService);
builder.Build().Run();
```
5. when I then add the reference from BlazorApp1 to BlazorApp1.ServiceDefaults I received the following error:
```
Error NETSDK1082 There was no runtime pack for Microsoft.AspNetCore.App available for the specified RuntimeIdentifier 'browser-wasm'. BlazorApp1 C:\Program Files\dotnet\sdk\8.0.204\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.FrameworkReferenceResolution.targets 491
```
As eShop doesn't use Blazor I assume these issues have gone unnoticed and hence this question. I have also included the solution where these questions came from (basically dotnet new code)
[BlazorApp1.zip](https://github.com/dotnet/aspire/files/14928687/BlazorApp1.zip)
Contributor guide
Assessment
This issue has not been assessed yet.