dotnet-format icon indicating copy to clipboard operation
dotnet-format copied to clipboard

Not working with .NET Core v6

Open AOdwald opened this issue 3 years ago • 3 comments

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?

AOdwald avatar Dec 28 '21 13:12 AOdwald

Seems a ton of names for arguments and options have changed. https://github.com/dotnet/format/issues/1268

qubitz avatar Jan 28 '22 23:01 qubitz

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

IncPlusPlus avatar Aug 15 '22 13:08 IncPlusPlus

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.

AnthonySteele-NewDay avatar Jan 19 '23 13:01 AnthonySteele-NewDay