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-Gpu.Redist.csproj 3.7 kB

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