From 21ea792aac7273e2a6078ba2cde03e3c39e2283c Mon Sep 17 00:00:00 2001 From: andy Date: Sat, 22 Jul 2023 19:20:38 +0800 Subject: [PATCH] Let this project able to support the dotnet 6.0 Follow this PR to make the change: https://github.com/xt0rted/dotnet-format/pull/406 --- src/dotnet.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)) {