Skip to content

Commit b5c90a1

Browse files
authored
Use a different license tag for nuget generation (#100)
The [`<PackageLicenseExpression>`][0] tag must be used to generate nuget metadata (if the used license is one of those by the [SPDX][1] project) that's understood by automated license scanning tooling. Contents of the tag is a [boolean expression][2]. [0]: https://docs.microsoft.com/en-us/dotnet/standard/library-guidance/nuget#important-nuget-package-metadata [1]: https://spdx.org/licenses/ [2]: https://docs.microsoft.com/en-us/nuget/reference/nuspec#license
1 parent 922bc3f commit b5c90a1

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-
<_LibZipSharpAssemblyVersion>2.0.0</_LibZipSharpAssemblyVersion>
3+
<_LibZipSharpAssemblyVersion>2.0.1</_LibZipSharpAssemblyVersion>
44
<!--
55
Nuget Version. You can append things like -alpha-1 etc to this value.
66
But always leave the $(_LibZipSharpAssemblyVersion) value at the start.

LibZipSharp/libZipSharp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<Owners>Microsoft, Xamarin</Owners>
4444
<Copyright>© Microsoft Corporation. All rights reserved.</Copyright>
4545
<PackageProjectUrl>https://github.com/xamarin/LibZipSharp</PackageProjectUrl>
46-
<PackageLicenseUrl>https://raw.githubusercontent.com/xamarin/LibZipSharp/master/LICENSE</PackageLicenseUrl>
46+
<PackageLicenseExpression>MIT</PackageLicenseExpression>
4747
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
4848
<PackageTags></PackageTags>
4949
<PackageOutputPath>$(MSBuildThisFileDirectory)</PackageOutputPath>

0 commit comments

Comments
 (0)