2020-06-09 16:08:19 +00:00
|
|
|
<Project Sdk="Microsoft.NET.Sdk">
|
|
|
|
|
|
|
|
|
|
<PropertyGroup>
|
|
|
|
|
<ProjectName>Microsoft.AI.MachineLearning.Interop</ProjectName>
|
2021-05-01 07:56:36 +00:00
|
|
|
<TargetFramework>net5.0-windows10.0.17763.0</TargetFramework>
|
2020-06-09 16:08:19 +00:00
|
|
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
|
|
|
|
|
|
|
|
|
<Platform>Any CPU</Platform>
|
|
|
|
|
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
|
|
|
|
|
|
|
|
|
<OnnxRuntimeBuildDirectory Condition="'$(OnnxRuntimeBuildDirectory)'==''">..\..\..\build\Windows</OnnxRuntimeBuildDirectory>
|
|
|
|
|
<BuildOutputDir>$(OnnxRuntimeBuildDirectory)\$(Configuration)\$(Configuration)</BuildOutputDir>
|
|
|
|
|
<WindowsAIInteropOutputDir>$(BuildOutputDir)\Microsoft.AI.MachineLearning.Interop</WindowsAIInteropOutputDir>
|
|
|
|
|
<OutputPath>$(WindowsAIInteropOutputDir)</OutputPath>
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
|
|
<ItemGroup>
|
2021-05-01 07:56:36 +00:00
|
|
|
<PackageReference Include="Microsoft.Windows.CsWinRT" Version="1.1.0" targetFramework="net5.0-windows10.0.17763.0" />
|
|
|
|
|
<PackageReference Include="Microsoft.Windows.SDK.Contracts" Version="10.0.17763.1000" targetFramework="net5.0-windows10.0.17763.0" />
|
2020-06-09 16:08:19 +00:00
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<Folder Include="Generated Files\" />
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
|
|
<Target Name="GenerateProjection" BeforeTargets="DispatchToInnerBuilds;Build;CoreCompile">
|
|
|
|
|
<ConvertToAbsolutePath Paths="$(OnnxRuntimeBuildDirectory)">
|
2020-08-05 20:02:24 +00:00
|
|
|
<Output TaskParameter="AbsolutePaths" PropertyName="OnnxRuntimeBuildDirectoryAbs" />
|
2020-06-09 16:08:19 +00:00
|
|
|
</ConvertToAbsolutePath>
|
|
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<WindowsAIsWinMDs Include="$(OnnxRuntimeBuildDirectoryAbs)\$(Configuration)\Microsoft.AI.MachineLearning.winmd" />
|
2021-02-12 22:17:10 +00:00
|
|
|
<WindowsAIsWinMDs Include="$(OnnxRuntimeBuildDirectoryAbs)\$(Configuration)\Microsoft.AI.MachineLearning.Experimental.winmd" />
|
2020-06-09 16:08:19 +00:00
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
|
|
<PropertyGroup>
|
|
|
|
|
<CsWinRTCommand>$(CsWinRTPath)cswinrt.exe -verbose -in local -in @(WindowsAIsWinMDs->'"%(FullPath)"', ' ') -out "$(ProjectDir)Generated Files" -include Microsoft.AI.MachineLearning</CsWinRTCommand>
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
2020-08-05 20:02:24 +00:00
|
|
|
<Message Text="Generating $(ProjectName) CS projection sources with command:" />
|
|
|
|
|
<Message Text="$(CsWinRTCommand)" />
|
2020-06-09 16:08:19 +00:00
|
|
|
<Exec Command="$(CsWinRTCommand)" />
|
|
|
|
|
|
|
|
|
|
<ItemGroup>
|
|
|
|
|
<Compile Include="$(ProjectDir)Generated Files/*.cs" Exclude="@(Compile)" />
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
</Target>
|
|
|
|
|
|
|
|
|
|
</Project>
|