dotnet / dotnet/format

dotnet format does not respect the .NET install location

Open
#1,925 6 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
1.9k
Forks
173
Avg merge
10d 13h
Merged PRs (30d)
1

Description

I manage my own .NET installations and have the `dotnet` command aliased to the directory where I keep my installations. This works perfectly for `dotnet run`, `dotnet build`, `dotnet pack` etc. When running `dotnet format` however, I get the following error message:
```
No .NET SDKs were found.

Download a .NET SDK:
https://aka.ms/dotnet/download

Learn about SDK resolution:
https://aka.ms/dotnet/sdk-not-found
Unable to locate MSBuild. Ensure the .NET SDK was installed with the official installer.
```

I am using macOS 13.4.1 with an M1 Pro.

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.