Azure pipeline fail running dotnet-format when newer version is available
fedele7008 opened this issue · 2 comments
fedele7008 commented
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.
JoeRobich commented
@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
.
fedele7008 commented
We forwarded issue on dotnet/sdk dotnet/sdk#36434 because it seems like the issue is from dotnet tool restore
command.