Closed fedele7008 closed 10 months ago
@fedele7008 What .NET SDK are you building against? If it is .NET 6+, I would recommend using the dotnet CLI directly as format ships in the SDK now. You would use dotnet format
instead of dotnet-format
.
We forwarded issue on dotnet/sdk https://github.com/dotnet/sdk/issues/36434 because it seems like the issue is from dotnet tool restore
command.
We are running dotnet tool restore to download dotnet-format version '8.0.452306'
But it fails when trying to run dotnet-format
run
dotnet tool restore
run
dotnet tool run dotnet-format
This error shouldn't occur since we just restored it.
It always works on the latest version (at the time of filing this issue '8.0.452310') but it seems to failing on older versions.