-
Notifications
You must be signed in to change notification settings - Fork 326
Expand file tree
/
Copy pathWindowsMLSample.csproj
More file actions
93 lines (86 loc) · 4.58 KB
/
Copy pathWindowsMLSample.csproj
File metadata and controls
93 lines (86 loc) · 4.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<RootNamespace>WindowsMLSample</RootNamespace>
<ApplicationManifest>app.manifest</ApplicationManifest>
<UseWinUI>true</UseWinUI>
<EnableMsixTooling>true</EnableMsixTooling>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<GenerateAppInstallerFile>False</GenerateAppInstallerFile>
<AppxPackageSigningEnabled Condition="'$(AppxPackageSigningEnabled)' == '' and ('$(PackageCertificateThumbprint)' != '' or '$(PackageCertificateKeyFile)' != '')">True</AppxPackageSigningEnabled>
<AppxPackageSigningEnabled Condition="'$(AppxPackageSigningEnabled)' == ''">False</AppxPackageSigningEnabled>
<AppxPackageSigningTimestampDigestAlgorithm>SHA256</AppxPackageSigningTimestampDigestAlgorithm>
<AppxAutoIncrementPackageRevision>False</AppxAutoIncrementPackageRevision>
<AppxSymbolPackageEnabled>False</AppxSymbolPackageEnabled>
<GenerateTestArtifacts>True</GenerateTestArtifacts>
<AppxBundle>Never</AppxBundle>
<HoursBetweenUpdateChecks>0</HoursBetweenUpdateChecks>
<AppxOSMinVersionReplaceManifestVersion>false</AppxOSMinVersionReplaceManifestVersion>
<AppxOSMaxVersionTestedReplaceManifestVersion>false</AppxOSMaxVersionTestedReplaceManifestVersion>
</PropertyGroup>
<ItemGroup>
<Content Include="Assets\*.jpg">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Assets\*.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<!-- Include SqueezeNet model files in MSIX package -->
<Target Name="IncludeSqueezeNetFilesInPackage" DependsOnTargets="CopySqueezeNetModelToOutput" BeforeTargets="_ComputeAppxPackagePayload">
<ItemGroup>
<AppxPackagePayload Include="$(OutputPath)SqueezeNet.onnx">
<TargetPath>SqueezeNet.onnx</TargetPath>
</AppxPackagePayload>
<AppxPackagePayload Include="$(OutputPath)SqueezeNet.fp32.onnx">
<TargetPath>SqueezeNet.fp32.onnx</TargetPath>
</AppxPackagePayload>
<AppxPackagePayload Include="$(OutputPath)SqueezeNet.Labels.txt">
<TargetPath>SqueezeNet.Labels.txt</TargetPath>
</AppxPackagePayload>
<AppxPackagePayload Include="$(OutputPath)SqueezeNet.LICENSE.txt">
<TargetPath>SqueezeNet.LICENSE.txt</TargetPath>
</AppxPackagePayload>
<AppxPackagePayload Include="$(OutputPath)image.png">
<TargetPath>image.png</TargetPath>
</AppxPackagePayload>
<AppxPackagePayload Include="$(OutputPath)openvino_perf.json">
<TargetPath>openvino_perf.json</TargetPath>
</AppxPackagePayload>
<AppxPackagePayload Include="$(OutputPath)openvino_efficiency.json">
<TargetPath>openvino_efficiency.json</TargetPath>
</AppxPackagePayload>
</ItemGroup>
</Target>
<ItemGroup>
<PackageReference Include="Microsoft.WindowsAppSDK" />
<PackageReference Include="System.Numerics.Tensors" />
<Manifest Include="$(ApplicationManifest)" />
</ItemGroup>
<!-- Include shared WindowsML helpers -->
<ItemGroup>
<Compile Include="..\Shared\cs\ArgumentParser.cs" Link="Shared\ArgumentParser.cs" />
<Compile Include="..\Shared\cs\ExecutionProviderManager.cs" Link="Shared\ExecutionProviderManager.cs" />
<Compile Include="..\Shared\cs\ImageProcessor.cs" Link="Shared\ImageProcessor.cs" />
<Compile Include="..\Shared\cs\ModelManager.cs" Link="Shared\ModelManager.cs" />
<Compile Include="..\Shared\cs\InferenceEngine.cs" Link="Shared\InferenceEngine.cs" />
<Compile Include="..\Shared\cs\ResultProcessor.cs" Link="Shared\ResultProcessor.cs" />
<Compile Include="..\Shared\cs\PerformanceConfigurator.cs" Link="Shared\PerformanceConfigurator.cs" />
</ItemGroup>
<!-- Include OpenVINO configuration files -->
<ItemGroup>
<Content Include="..\Shared\openvino_perf.json" Link="openvino_perf.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="..\Shared\openvino_efficiency.json" Link="openvino_efficiency.json">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
</ItemGroup>
<Import Project="..\Resources\SqueezeNetModel.targets" />
<!-- Defining the "Msix" ProjectCapability here allows the Single-project MSIX Packaging
Tools extension to be activated for this project even if the Windows App SDK Nuget
package has not yet been restored -->
<ItemGroup Condition="'$(DisableMsixProjectCapabilityAddedByProject)'!='true' and '$(EnablePreviewMsixTooling)'=='true'">
<ProjectCapability Include="Msix" />
</ItemGroup>
</Project>