27 lines
1 KiB
XML
27 lines
1 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
<PropertyGroup>
|
|
<OutputType>Exe</OutputType>
|
|
</PropertyGroup>
|
|
|
|
<Target Name="PostBuildTarget" AfterTargets="AfterBuild">
|
|
<Message Text="Running Validation Project" Importance="high" />
|
|
|
|
<Exec WorkingDirectory="$(ProjectDir)bin\Debug\$(TargetFramework)\"
|
|
Command="dotnet Ryujinx.BuildValidationTasks.dll "$(ProjectDir)..\..\\""
|
|
ConsoleToMsBuild="true"
|
|
Condition="'$(RuntimeIdentifier)' == ''"
|
|
IgnoreExitCode="true">
|
|
<Output TaskParameter="ConsoleOutput" PropertyName="OutputOfExec" />
|
|
<Output TaskParameter="ExitCode" PropertyName="BuildExitCode"/>
|
|
</Exec>
|
|
|
|
<PropertyGroup Condition=" '$(OutputOfExec.IndexOf(Unhandled exception))' != '-1'">
|
|
<ErrorOutput>$(OutputOfExec.Substring($(OutputOfExec.IndexOf("Unhandled exception"))))</ErrorOutput>
|
|
<ErrorOutput>$(ErrorOutput.Substring(0, $(ErrorOutput.IndexOf(';'))))</ErrorOutput>
|
|
</PropertyGroup>
|
|
|
|
<Error Text="$(ErrorOutput)" Condition=" '$(BuildExitCode)' != '0'"/>
|
|
</Target>
|
|
|
|
</Project>
|