dotnet / dotnet/sdk

`dotnet workload restore` installs "aspire" though it isn't needed or wanted

Open
#42,486 4 comments 0 reactions 0 assignees View on GitHub
Area-Workloads
Dominant language
C#
Stars
3.2k
Forks
1.3k
PR merge metrics
PR metrics pending

Description

Aspire seems to be pushed too hard on folks who don't need or want it.

### Repro steps

```
git clone https://github.com/AArnott/Library.Template
cd Library.Template
dotnet workload restore
```

### Expected

No workloads installed, because none are required for this repo.

### Actual

Aspire is (allegedly) installed:

> Installing workloads:
>
> Successfully installed workload(s) aspire.

### It gets worse

In fact the following repro, on the same machine, tries to _elevate_ to install Aspire-related stuff:

```
dotnet new classlib -o aspire
cd aspire
dotnet workload restore
```

Produces this output:

> Installing workloads:
>
> Writing install records for Visual Studio workloads: 'aspire'
> Workload installation failed: An error occurred trying to start process '"C:\Program Files\dotnet\dotnet.exe"' with working directory 'C:\temp\aspire'. The operation was canceled by the user.

It says it was canceled because a UAC prompt appeared, which I rejected.
Why would aspire be considered required here?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.