Does the MSBuild Exec task search STDOUT for the string “error”?
问题 I have a small NUnit test suite with a single ignored test. I'm just now writing a simple MSBuild script to restore and publish and the like. I tried to get a dotnet test task working <Target Name="test" DependsOnTargets="restore"> <Exec Command="dotnet test" WorkingDirectory="test\Example.Tests" /> </Target> But, it exits with code -1 every time! PS> dotnet msbuild /t:test build.xml Microsoft (R) Build Engine version 15.3.409.57025 for .NET Core Copyright (C) Microsoft Corporation. All