Skip to content

dotnet-format 8.0 rc1 is failing on Alpine 3.17 #1945

@NikolaMilosavljevic

Description

@NikolaMilosavljevic

It appears that MSBuildLocator is not finding hostfxr library and .NET SDK, thus failing to provide MSBuild path.

Here's the failure output, from source-build tests:

System.InvalidOperationException : Failed to execute /src/git/dotnet4/test/Microsoft.DotNet.SourceBuild.SmokeTests/bin/Release/net8.0/.dotnet/dotnet format /src/git/dotnet4/test/Microsoft.DotNet.SourceBuild.SmokeTests/bin/Release/net8.0/projects-202308231813239264/FormatProject/FormatProject.csproj
  Exit code: 3

  Unable to locate MSBuild. Ensure the .NET SDK was installed with the official installer.

Perhaps getting rid of MSBuildLocator dependency is good option, considering that dotnet-format ships in SDK and should be able to find MSBuild directly.

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