|
6 | 6 | <PackProject Include="**\libtorch-cuda-$(CudaVersionDot)-linux-*.nupkgproj" Condition="'$(IncludeLibTorchCudaPackages)' == 'true' AND '$(TargetOS)' == 'linux'" />
|
7 | 7 | <PackProject Include="**\libtorch-cuda-$(CudaVersionDot)-win-*.nupkgproj" Condition="'$(IncludeLibTorchCudaPackages)' == 'true' AND '$(TargetOS)' == 'windows'" />
|
8 | 8 | <PackProject Include="**\libtorch-cuda-$(CudaVersionDot)-mac-*.nupkgproj" Condition="'$(IncludeLibTorchCudaPackages)' == 'true' AND '$(TargetOS)' == 'mac'" />
|
| 9 | + </ItemGroup> |
| 10 | + <ItemGroup Condition="'$(IncludeTorchSharpPackage)' == 'true'"> |
9 | 11 | <PackProject Include="**\TorchAudio.nupkgproj" />
|
10 | 12 | <PackProject Include="**\TorchSharp.nupkgproj" />
|
11 | 13 | <PackProject Include="**\TorchSharp-cpu.nupkgproj" />
|
12 | 14 | <PackProject Include="**\TorchSharp-cuda-linux.nupkgproj" />
|
13 | 15 | <PackProject Include="**\TorchSharp-cuda-windows.nupkgproj" />
|
14 | 16 | <PackProject Include="**\TorchVision.nupkgproj" />
|
15 | 17 | </ItemGroup>
|
16 |
| - <Target Name="Pack"> |
| 18 | + <Target Name="Restore"> |
17 | 19 | <Message Text="Restoring packaging projects..." Importance="high" />
|
18 |
| - |
19 |
| - <Warning Text="Packages will be incomplete and unusable on linux platforms. To get a complete package you need the LibTorchSharp.so binaries for other platforms and copy them into '$(PackagePreparationPath)' to make complete packages. This is automated by Azure Pipelines." |
| 20 | + <MSBuild Projects="%(PackProject.Identity)" Targets="Restore" /> |
| 21 | + </Target> |
| 22 | + <Target Name="Pack" DependsOnTargets="Restore"> |
| 23 | + <Warning Text="Packages will be incomplete and unusable on linux platforms. To get a complete package you need the LibTorchSharp.so binaries for other platforms and copy them into '$(PackagePreparationPath)' to make complete packages. This is automated by Azure Pipelines." |
20 | 24 | Condition="'$(IncludeTorchSharpPackage)' == 'true' AND !Exists('$(PackagePreparationPath)\TorchSharp\runtimes\linux-x64\native\libLibTorchSharp.so')" />
|
21 |
| - <Warning Text="Packages will be incomplete and unusable on win-x64 platform. To get a complete package you need the LibTorchSharp.dll binaries for other platforms and copy them into '$(PackagePreparationPath)' to make complete packages. This is automated by Azure Pipelines." |
| 25 | + <Warning Text="Packages will be incomplete and unusable on win-x64 platform. To get a complete package you need the LibTorchSharp.dll binaries for other platforms and copy them into '$(PackagePreparationPath)' to make complete packages. This is automated by Azure Pipelines." |
22 | 26 | Condition="'$(IncludeTorchSharpPackage)' == 'true' AND !Exists('$(PackagePreparationPath)\TorchSharp\runtimes\win-x64\native\LibTorchSharp.dll')" />
|
23 | 27 |
|
24 |
| - <MSBuild Projects="%(PackProject.Identity)" Targets="Restore" /> |
25 | 28 | <MSBuild Projects="%(PackProject.Identity)" Targets="Pack" />
|
26 | 29 |
|
27 | 30 | <Message Text="Done packing!" Importance="high" />
|
|
0 commit comments