Skip to content

dotnet format does not respect the .NET install location #1925

Description

@CollinAlpert

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions