-
Notifications
You must be signed in to change notification settings - Fork 195
/
Copy pathExamples.csproj
40 lines (34 loc) · 1.73 KB
/
Examples.csproj
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
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<WarningsNotAsErrors>CS8981</WarningsNotAsErrors>
<OutputType>Exe</OutputType>
<TestUsesLibTorch>true</TestUsesLibTorch>
<TestCuda>true</TestCuda>
<!-- The Directory.Build.props initialize TargetFrameworks to multiple targets. We have to clear that out to set only the targets we support. -->
<TargetFrameworks></TargetFrameworks>
<LangVersion>9.0</LangVersion>
<TargetFrameworks Condition="'$(TargetFrameworks)' == ''">net8.0</TargetFrameworks>
<TestUsesLibTorch>true</TestUsesLibTorch>
<UseMLCodeAnalyzer>false</UseMLCodeAnalyzer>
<UseStyleCopAnalyzer>false</UseStyleCopAnalyzer>
<StartupObject>TorchSharp.Examples.Program</StartupObject>
<IsPackable>false</IsPackable>
<RootNamespace>TorchSharp.Examples</RootNamespace>
</PropertyGroup>
<ItemGroup Condition="'$(TargetFramework)' == 'net472'">
<Compile Include="$(MSBuildThisFileDirectory)..\..\src\TorchSharp\netstandard.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Net.Http" Version="2.2.29" Condition="'$(TargetFramework)' == 'net472'" />
<PackageReference Include="SharpZipLib" Version="1.4.0" />
<PackageReference Include="SkiaSharp" Version="2.88.6" />
<PackageReference Include="SkiaSharp.NativeAssets.Linux.NoDependencies" Version="2.88.6" />
<PackageReference Include="System.Memory" Version="4.5.5" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Examples.Utils\Examples.Utils.csproj" />
<ProjectReference Include="..\TorchAudio\TorchAudio.csproj" />
<ProjectReference Include="..\TorchSharp\TorchSharp.csproj" />
<ProjectReference Include="..\TorchVision\TorchVision.csproj" />
</ItemGroup>
</Project>