From 7c77a1bed402f44f03780dc257d5ccb91088367e Mon Sep 17 00:00:00 2001 From: PetSerAl Date: Sat, 7 Dec 2024 11:09:59 +0300 Subject: [PATCH] Adapt to current error format --- 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) " />