Browse Source

Nuget package license fix.

Vicente Penades 6 years ago
parent
commit
416df19716
1 changed files with 17 additions and 5 deletions
  1. 17 5
      src/PackageInfo.props

+ 17 - 5
src/PackageInfo.props

@@ -2,23 +2,35 @@
 <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
 <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
 
 
   <PropertyGroup>
   <PropertyGroup>
+    
     <Authors>Vicente Penades</Authors>
     <Authors>Vicente Penades</Authors>
     <Copyright>Copyright (c) 2019 Vicente Penades</Copyright>
     <Copyright>Copyright (c) 2019 Vicente Penades</Copyright>
     <Description>SharpGLTF is a C# library for reading and writing glTF2 3D models</Description>
     <Description>SharpGLTF is a C# library for reading and writing glTF2 3D models</Description>
-    <PackageProjectUrl>https://github.com/vpenades/SharpGLTF</PackageProjectUrl>
+    
     <RepositoryUrl>https://github.com/vpenades/SharpGLTF</RepositoryUrl>
     <RepositoryUrl>https://github.com/vpenades/SharpGLTF</RepositoryUrl>
     <RepositoryType>git</RepositoryType>
     <RepositoryType>git</RepositoryType>
+    
     <PackageTags>C# glTF 3D</PackageTags>
     <PackageTags>C# glTF 3D</PackageTags>
-    <PackageLicenseFile>LICENSE</PackageLicenseFile>
+    <PackageProjectUrl>https://github.com/vpenades/SharpGLTF</PackageProjectUrl>
     <PackageIconUrl>https://raw.githubusercontent.com/vpenades/SharpGLTF/master/build/Icons/glTF2Sharp.png</PackageIconUrl>
     <PackageIconUrl>https://raw.githubusercontent.com/vpenades/SharpGLTF/master/build/Icons/glTF2Sharp.png</PackageIconUrl>
+    
+    <DocumentationFile>bin\$(Configuration)\$(AssemblyName).xml</DocumentationFile>
+    
   </PropertyGroup>
   </PropertyGroup>
+  
+  <!-- https://github.com/NuGet/Home/wiki/Packaging-License-within-the-nupkg#project-properties -->
 
 
   <PropertyGroup>
   <PropertyGroup>
-    <DocumentationFile>bin\$(Configuration)\$(AssemblyName).xml</DocumentationFile>
+    <PackageLicenseExpression>MIT</PackageLicenseExpression>
+  </PropertyGroup>
+  
+  <!--
+  <PropertyGroup>
+    <PackageLicenseFile>LICENSE</PackageLicenseFile>
   </PropertyGroup>
   </PropertyGroup>
-
   <ItemGroup>
   <ItemGroup>
-    <None Include="$(MsBuildThisFileDirectory)..\LICENSE" Pack="true" PackagePath="" />
+    <None Include="$(MsBuildThisFileDirectory)..\LICENSE" Pack="true" PackagePath="$(PackageLicenseFile)" />
   </ItemGroup>
   </ItemGroup>
+  -->
 	
 	
 </Project>
 </Project>