Skip to content

Commit b48176e

Browse files
authored
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.
1 parent 75249e5 commit b48176e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Src/CSharpier.MsBuild/build/CSharpier.MsBuild.targets

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
StdOutEncoding="utf-8"
2626
StdErrEncoding="utf-8"
2727
IgnoreExitCode="true"
28+
IgnoreStandardErrorWarningFormat="true"
29+
CustomErrorRegularExpression="^Error "
2830
Command=""$(CSharpier_dotnet_Path)" exec "$(CSharpierDllPath)" $(CSharpierArgs) --no-msbuild-check --compilation-errors-as-warnings "$(MSBuildProjectDirectory)" > $(NullOutput) " />
2931
</Target>
3032

0 commit comments

Comments
 (0)