Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure pipeline fail running dotnet-format when newer version is available #1993

Closed
fedele7008 opened this issue Oct 23, 2023 · 2 comments
Closed

Comments

@fedele7008
Copy link

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

Screenshot 2023-10-23 at 6 11 11 PM

run dotnet tool run dotnet-format

Screenshot 2023-10-23 at 6 12 56 PM
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
Copy link
Member

@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
Copy link
Author

We forwarded issue on dotnet/sdk dotnet/sdk#36434 because it seems like the issue is from dotnet tool restore command.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants