Skip to content

Commit 3e330cf

Browse files
committed
Render dotnet runfile output on fail
1 parent d4c67ee commit 3e330cf

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/GrokClient/GrokClient.csproj

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,12 @@
1515
</ItemGroup>
1616

1717
<Target Name="FixProto" BeforeTargets="Protobuf_BeforeCompile">
18-
<Exec Command="dotnet run --file ..\protofix.cs" />
19-
18+
<Exec Command="dotnet run --file protofix.cs $(MSBuildProjectDirectory)" WorkingDirectory="$(MSBuildProjectDirectory)\.." StandardErrorImportance="high" IgnoreStandardErrorWarningFormat="true" StandardOutputImportance="low" ConsoleToMSBuild="true" ContinueOnError="true">
19+
<Output TaskParameter="ConsoleOutput" PropertyName="RunOutput" />
20+
<Output TaskParameter="ExitCode" PropertyName="ExitCode" />
21+
</Exec>
22+
<Message Importance="high" Text="$(RunOutput)" Condition="'$(ExitCode)' != '0'" />
23+
<Error Text="$(RunOutput)" Condition="'$(ExitCode)' != '0'" />
2024
</Target>
2125

2226
</Project>

0 commit comments

Comments
 (0)