Skip to content

Commit

Permalink
Fix "dotnet t4 -h" redir to be x-plat
Browse files Browse the repository at this point in the history
  • Loading branch information
atifaziz committed Dec 27, 2020
1 parent 348197a commit 4cf0359
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion MoreLinq/MoreLinq.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,10 @@
See also: https://github.com/dotnet/msbuild/issues/2781 -->
<Error Condition="'$(BuildInParallel)' == 'true'"
Text="Parallel build is unsupported for T4 code generation. Re-build with the switch &#34;-p:BuildInParallel=false&#34;." />
<Exec Command="dotnet t4 -h &gt; NUL" IgnoreExitCode="True">
<Exec Command="dotnet t4 -h > /dev/null" IgnoreExitCode="True" Condition="'$(WINDIR)' == ''">
<Output TaskParameter="ExitCode" PropertyName="_TestExitCode" />
</Exec>
<Exec Command="dotnet t4 -h &gt; NUL" IgnoreExitCode="True" Condition="'$(WINDIR)' != ''">
<Output TaskParameter="ExitCode" PropertyName="_TestExitCode" />
</Exec>
<Exec Command="dotnet tool restore" Condition="$(_TestExitCode) != 0" />
Expand Down

0 comments on commit 4cf0359

Please sign in to comment.