Skip to content

Commit

Permalink
Include win32 native lib in nuget package
Browse files Browse the repository at this point in the history
See #285
  • Loading branch information
pearswj committed Dec 21, 2020
1 parent ff7adb1 commit 2b99f76
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/dotnet/Rhino3dm.core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@
</None>
</ItemGroup>

<ItemGroup Condition="exists('..\build\windows\win32\Release\librhino3dm_native.dll')">
<None Include="..\build\windows\win32\Release\librhino3dm_native.dll">
<PackagePath>runtimes\win-x86\native</PackagePath>
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
<Pack>true</Pack>
</None>
</ItemGroup>

<ItemGroup Condition="exists('..\build\macos\Release\librhino3dm_native.dylib')">
<None Include="..\build\macos\Release\librhino3dm_native.dylib">
<PackagePath>runtimes\osx-x64\native</PackagePath>
Expand Down
6 changes: 5 additions & 1 deletion src/dotnet/build/net45/Rhino3dm.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
-->
<Project>
<ItemGroup>
<ContentWithTargetPath Include="$(MSBuildThisFileDirectory)\..\..\runtimes\**\*" TargetPath="%(Filename)%(Extension)" CopyToOutputDirectory="PreserveNewest" />
<!-- <ContentWithTargetPath Include="$(MSBuildThisFileDirectory)\..\..\runtimes\**\*" TargetPath="%(Filename)%(Extension)" CopyToOutputDirectory="PreserveNewest" /> -->
<ContentWithTargetPath Include="$(MSBuildThisFileDirectory)\..\..\runtimes\osx-x64\native\*" TargetPath="%(Filename)%(Extension)" CopyToOutputDirectory="PreserveNewest" />
<ContentWithTargetPath Include="$(MSBuildThisFileDirectory)\..\..\runtimes\linux-x64\native\*" TargetPath="%(Filename)%(Extension)" CopyToOutputDirectory="PreserveNewest" />
<ContentWithTargetPath Include="$(MSBuildThisFileDirectory)\..\..\runtimes\win-x64\native\*" TargetPath="Win64\%(Filename)%(Extension)" CopyToOutputDirectory="PreserveNewest" />
<ContentWithTargetPath Include="$(MSBuildThisFileDirectory)\..\..\runtimes\win-x86\native\*" TargetPath="Win32\%(Filename)%(Extension)" CopyToOutputDirectory="PreserveNewest" />
</ItemGroup>
</Project>

0 comments on commit 2b99f76

Please sign in to comment.