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

Not working with .NET Core v6 #320

Open
LethalsLoaded opened this issue Dec 28, 2021 · 3 comments
Open

Not working with .NET Core v6 #320

LethalsLoaded opened this issue Dec 28, 2021 · 3 comments

Comments

@LethalsLoaded
Copy link

LethalsLoaded commented Dec 28, 2021

I spent past hour or so trying to get dotnet format working in my action pipeline for a .NET Core v6 project. I went through various configurations to the yml file but all end with the same result:

Unrecognized command or argument '--check'
Unrecognized command or argument '--dry-run'
Unrecognized command or argument '--files'

Is there any workaround for this?

@qubitz
Copy link

qubitz commented Jan 28, 2022

Seems a ton of names for arguments and options have changed. dotnet/format#1268

@IncPlusPlus
Copy link

Seems the new argument to check without changing files is --verify-no-changes.

@AnthonySteele-NewDay
Copy link

AnthonySteele-NewDay commented Jan 19, 2023

Any update? Most of the issues here are caused by this project not tracking changes to dotnet format commandline options.
Currently it's not obvious that this action is unusable with any supported version of .NET (version 6 or 7 as of January 2023), would be better if that's resolved one way or the other to clear up confusion.

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

4 participants