mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-18 21:21:17 +00:00
* initial commit * More changes * More changes * Adding stuff back to the targets xml * More changes v3 * More changes v4 * More changes v5 * More changes v6 * More changes v7 * More changes v9 * Disable CSharp tests for now * More changes * Revert file to same status * Update props file for x86 * Change to usage of TargetArchitecture instead of PlatformTarget * Update targets.xml * Minor formatting nit fix * Update based on PR comments
16 lines
991 B
XML
16 lines
991 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
|
<Target Name="Microsoft_ML_OnnxRuntime_CheckPrerequisites" BeforeTargets="BeforeBuild">
|
|
<!--
|
|
Special case .NET Core portable applications. When building a portable .NET Core app,
|
|
the PlatformTarget is empty, and you don't know until runtime (i.e. which dotnet.exe)
|
|
what processor architecture will be used.
|
|
-->
|
|
<Error Condition="('$(PlatformTarget)' != 'x64' AND '$(PlatformTarget)' != 'x86' AND '$(PlatformTarget)' != 'AnyCPU') AND
|
|
('$(OutputType)' == 'Exe' OR '$(OutputType)'=='WinExe') AND
|
|
!('$(TargetFrameworkIdentifier)' == '.NETCoreApp' AND '$(PlatformTarget)' == '') AND
|
|
'$(SuppressOnnxRuntimePlatformCompatibilityError)' != 'true'"
|
|
Text="Microsoft.ML.OnnxRuntime only supports the AnyCPU, x64, and x86 platforms at this time."/>
|
|
</Target>
|
|
|
|
</Project>
|