From b48176e20b6d5fdc6984cfb2c40039ddae372fff Mon Sep 17 00:00:00 2001 From: PetSerAl Date: Sat, 7 Dec 2024 21:20:40 +0300 Subject: [PATCH] Adapt to current error format (#1397) As CSharpier currently does not output error messages in MSBuild compatible format, adapt Exec options to current error format. Should fix #1357. --- Src/CSharpier.MsBuild/build/CSharpier.MsBuild.targets | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Src/CSharpier.MsBuild/build/CSharpier.MsBuild.targets b/Src/CSharpier.MsBuild/build/CSharpier.MsBuild.targets index 10d4787a6..f5c7c8255 100644 --- a/Src/CSharpier.MsBuild/build/CSharpier.MsBuild.targets +++ b/Src/CSharpier.MsBuild/build/CSharpier.MsBuild.targets @@ -25,6 +25,8 @@ StdOutEncoding="utf-8" StdErrEncoding="utf-8" IgnoreExitCode="true" + IgnoreStandardErrorWarningFormat="true" + CustomErrorRegularExpression="^Error " Command=""$(CSharpier_dotnet_Path)" exec "$(CSharpierDllPath)" $(CSharpierArgs) --no-msbuild-check --compilation-errors-as-warnings "$(MSBuildProjectDirectory)" > $(NullOutput) " />