Skip to content

Commit 633d09d

Browse files
authored
[nuget] Include Mono.Unix build assets (#91)
This is to make projects which reference only LibZipSharp work with the new Mono.Unix package. By default, the nuget generated for LibZipSharp will not include Mono.Unix's `build` components which will break said projects. Transitive build assets must be included so that the Mono.Unix configuration and runtime files are copied to the project directory.
1 parent ca04fce commit 633d09d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

LibZipSharp.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
22
<PropertyGroup>
3-
<_LibZipSharpNugetVersion>2.0.0-alpha</_LibZipSharpNugetVersion>
3+
<_LibZipSharpNugetVersion>2.0.0-alpha2</_LibZipSharpNugetVersion>
44
<_NativeBuildDir>$(MSBuildThisFileDirectory)lzsbuild</_NativeBuildDir>
55
<_ExternalDir>$(MSBuildThisFileDirectory)external</_ExternalDir>
66
<_MonoPosixNugetVersion>7.0.0-alpha.21276.2</_MonoPosixNugetVersion>

LibZipSharp/libZipSharp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
<None Include="$(_ExternalDir)\zlib-ng\LICENSE.md" PackagePath="Licences\zlib-ng" Pack="true" />
5858
</ItemGroup>
5959
<ItemGroup>
60-
<PackageReference Include="Mono.Unix" Version="$(_MonoPosixNugetVersion)" />
60+
<PackageReference Include="Mono.Unix" Version="$(_MonoPosixNugetVersion)" PrivateAssets="analyzers" />
6161
<PackageReference Include="System.Buffers" Version="4.5.0" />
6262
<PackageReference Include="XliffTasks" Version="1.0.0-beta.20206.1" PrivateAssets="all" />
6363
</ItemGroup>

0 commit comments

Comments
 (0)