You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/CLI.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -159,10 +159,14 @@ If a list of paths is not supplied, then stdin is read as a file, formatted and
159
159
`dotnet csharpier check [<directoryOrFile\>]`
160
160
161
161
Used to check if your files are already formatted. Outputs any files that have not already been formatted.
162
-
This will returnexit code 1 if there are unformatted files which is useful for CI pipelines.
162
+
By default this will returnexit code 1 if there are unformatted files which is useful for CI pipelines.
163
163
164
164
#### Options
165
-
See the `format`commandfor descriptions of these options
165
+
`--unformatted-as-warnings`
166
+
167
+
Treat unformatted files as a warning instead of an error. If there are unformatted files they will be printed to the output as a warning and the process will return an exit code of 0.
168
+
169
+
See the `format`commandfor descriptions of these additional options
CSharpier.MSBuild will be run with net8.0 or net9.0 if the project targets one of the three frameworks. In cases where the project targets something else (net48, netstandard2.0) `CSharpier_FrameworkVersion` will default to net8.0
55
63
This can be controlled with the following property. This property is required if the csproj is targeting < net8.0 (netstandard2.0, net48, etc) and net8.0 is not installed.
0 commit comments