diff --git a/src/dotnet.ts b/src/dotnet.ts index 6189d4cd..07a83908 100644 --- a/src/dotnet.ts +++ b/src/dotnet.ts @@ -37,10 +37,10 @@ function formatOnlyChangedFiles(onlyChangedFiles: boolean): boolean { async function formatVersion3(options: FormatOptions): Promise { const execOptions: ExecOptions = { ignoreReturnCode: true }; - const dotnetFormatOptions = ["format", "--check"]; + const dotnetFormatOptions = ["format"]; if (options.dryRun) { - dotnetFormatOptions.push("--dry-run"); + dotnetFormatOptions.push("--verify-no-changes"); } if (formatOnlyChangedFiles(options.onlyChangedFiles)) {