microsoft/onnxruntime-extensions

Public

mirrored fromhttps://github.com/microsoft/onnxruntime-extensionsAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
0d804203a90cac1bd5f1094e9938c8bfffa8801d

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

nuget/targets/netstandard/Microsoft.ML.OnnxRuntime.Extensions.targets

17lines · modecode

1<?xml version="1.0" encoding="utf-8"?>
2<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3 <Target Name="Microsoft_ML_OnnxRuntime_Extensions_CheckPrerequisites" BeforeTargets="BeforeBuild">
4 <!--
5 Special case .NET Core portable applications. When building a portable .NET Core app,
6 the PlatformTarget is empty, and you don't know until runtime (i.e. which dotnet.exe)
7 what processor architecture will be used.
8 -->
9 <Error Condition="('$(PlatformTarget)' != 'x64' AND '$(PlatformTarget)' != 'arm32' AND '$(PlatformTarget)' != 'arm64' AND '$(PlatformTarget)' != 'x86' AND '$(PlatformTarget)' != 'AnyCPU') AND
10 ('$(OutputType)' == 'Exe' OR '$(OutputType)'=='WinExe') AND
11 !('$(TargetFrameworkIdentifier)' == '.NETCoreApp' AND '$(PlatformTarget)' == '') AND
12 ('$(TargetFrameworkIdentifier)' != 'Xamarin.iOS' AND
13 $([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) != 'ios') AND
14 '$(SuppressOnnxRuntimePlatformCompatibilityError)' != 'true'"
15 Text="Microsoft.ML.OnnxRuntime.Extensions only supports the AnyCPU, x64, arm32, arm64 and x86 platforms at this time."/>
16 </Target>
17</Project>
18