From 63102b8607c93ff46f7968362d73f8fe4866f2e7 Mon Sep 17 00:00:00 2001 From: spiral Date: Thu, 3 Nov 2022 19:06:08 -0400 Subject: [PATCH] update to run on .net 6 --- 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)) {