You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

SciSharp.TensorFlow-Cpu.Redist.csproj 3.5 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <Project Sdk="Microsoft.NET.Sdk">
  2. <PropertyGroup>
  3. <TargetFramework>netstandard2.0</TargetFramework>
  4. <RuntimeIdentifiers>win-x64;linux-x64</RuntimeIdentifiers>
  5. <AssemblyName>SciSharp.Tensorflow-Cpu.Redist</AssemblyName>
  6. <PackageId>SciSharp.Tensorflow-Cpu.Redist</PackageId>
  7. <Version>1.0.0</Version>
  8. <Authors>SciSharp team</Authors>
  9. <Company>SciSharp STACK</Company>
  10. <RepositoryUrl>https://github.com/SciSharp/TensorFlow.NET</RepositoryUrl>
  11. <RepositoryType>git</RepositoryType>
  12. <Description>
  13. Meta-package for GPU Tensoflow library runtime distribution.
  14. Libraries can be directly downloaded from https://storage.googleapis.com/tensorflow/libtensorflow/
  15. </Description>
  16. <PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
  17. <PackageProjectUrl>https://github.com/SciSharp/TensorFlow.NET</PackageProjectUrl>
  18. <PackageTags>native;tensorflow;machine-learning;ML</PackageTags>
  19. <PackageOutputPath>../../packages</PackageOutputPath>
  20. <GeneratePackageOnBuild>false</GeneratePackageOnBuild>
  21. <EnableDefaultCompileItems>false</EnableDefaultCompileItems>
  22. <ProduceReferenceAssembly>false</ProduceReferenceAssembly>
  23. <IncludeBuildOutput>false</IncludeBuildOutput>
  24. </PropertyGroup>
  25. <!-- Need to add some dependencies so Meta-Project will pull runtime Project(s) -->
  26. <Target Name="ValidateRuntimePack" BeforeTargets="GenerateNuspec">
  27. <ItemGroup>
  28. <RuntimeLinux Include="../../packages/runtime.linux-x64.SciSharp.Tensorflow-Cpu.Redist.*.nupkg" />
  29. <RuntimeWin Include="../../packages/runtime.win-x64.SciSharp.Tensorflow-Cpu.Redist.*.nupkg" />
  30. </ItemGroup>
  31. <Message Importance="high" Text="Package runtime.linux-x64.SciSharp.Tensorflow-Cpu.Redist: found" Condition="Exists('@(RuntimeLinux)')" />
  32. <Message Importance="high" Text="Package runtime.linux-x64.SciSharp.Tensorflow-Cpu.Redist: not found" Condition="!Exists('@(RuntimeLinux)')" />
  33. <Message Importance="high" Text="Package runtime.win-x64.SciSharp.Tensorflow-Cpu.Redist: found" Condition="Exists('@(RuntimeWin)')" />
  34. <Message Importance="high" Text="Package runtime.win-x64.SciSharp.Tensorflow-Cpu.Redist: not found" Condition="!Exists('@(RuntimeWin)')" />
  35. <Error Text="You must locally 'dotnet pack' at least one runtime.{rid}.SciSharp.Tensorflow-Cpu.Redist project." Condition="!Exists('@(RuntimeLinux)') AND !Exists('@(RuntimeWin)')" />
  36. </Target>
  37. <PropertyGroup>
  38. <RestoreSources>../../packages;$(RestoreSources);https://api.nuget.org/v3/index.json</RestoreSources>
  39. </PropertyGroup>
  40. <ItemGroup Condition="Exists('../../packages/runtime.linux-x64.SciSharp.Tensorflow-Cpu.Redist.1.0.0.nupkg')">
  41. <PackageReference Include="runtime.linux-x64.SciSharp.Tensorflow-Cpu.Redist" Version="1.0.0" />
  42. </ItemGroup>
  43. <ItemGroup Condition="Exists('../../packages/runtime.win-x64.SciSharp.Tensorflow-Cpu.Redist.1.0.0.nupkg')">
  44. <PackageReference Include="runtime.win-x64.SciSharp.Tensorflow-Cpu.Redist" Version="1.0.0" />
  45. </ItemGroup>
  46. <ItemGroup>
  47. <RuntimeLinux Include="../../packages/runtime.linux-x64.SciSharp.Tensorflow-Cpu.Redist.*.nupkg" />
  48. <RuntimeWin Include="../../packages/runtime.win-x64.SciSharp.Tensorflow-Cpu.Redist.*.nupkg" />
  49. <Content Include="runtime.json" Condition="Exists('@(RuntimeLinux)') AND Exists('@(RuntimeWin)')">
  50. <PackagePath>runtime.json</PackagePath>
  51. <Pack>true</Pack>
  52. <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
  53. </Content>
  54. </ItemGroup>
  55. </Project>