microsoft / microsoft/aspire

VS refuses to load AppHost unless I install "Desktop Experience" workload.

Open
#12,274 4 comments 0 reactions 0 assignees View on GitHub
area-tooling vs
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Describe the bug

Just created a new starter template, but VS now refuses to load the AppHsot project, unless I install the `.Net desktop Development` workload.

Image

If I downgrade my SDK from `Aspire.AppHost.Sdk/13.0.0-preview.1.25521.9` to `Aspire.AppHost.Sdk/13.0.0-preview.1.25521.8`, then the project loads fine, although it does fail to find some dependencies

Image

So this could be a problem with using bleeding edge packages not fully propagated (moments ago, my testing resolved to `.8` rather than `.9`), although I do find the failure mode very unusual - I wouldn't expect VS to decide I'm missing the "Desktop Experience" workload just because a package was missing.

### Expected Behavior

The App Host should load, or at least fail with a clear error e.g. "Unable to find SDK".

### Steps To Reproduce

1. `aspire new` starter template
2. Try to open the solution in VS.

```cs


Exe
net9.0
enable
enable
24e06d33-ae85-4962-8231-b8e53273ad7a






```

### Exceptions (if any)

_No response_

### .NET Version info

Image

### Anything else?

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.