The 'licenseUrl' element will be deprecated

0

I have a library made with .NETStandard, after I updated Visual Studio, I now get a warning:

  

NU5125 The 'licenseUrl' element will be deprecated. Consider using the   'license' element instead.

See the code:

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>netstandard2.0</TargetFramework>
    <PackageLicenseUrl>https://github.com/NLog/NLog/blob/master/LICENSE.txt</PackageLicenseUrl>
    <Copyright>NUGET</Copyright>
    <PackageProjectUrl>NUGET</PackageProjectUrl>
    <PackageIconUrl>NUGET</PackageIconUrl>
    <RepositoryUrl>NUGET</RepositoryUrl>
    <RepositoryType>git</RepositoryType>
    <PackageTags>Wirecard</PackageTags>
    <PackageId>NUGET</PackageId>
    <Authors>NUGET</Authors>
    <Company>NUGET</Company>
    <Product>NUGET</Product>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Newtonsoft.Json" Version="12.0.1" />
  </ItemGroup>
</Project>

This warning happens when I enter the license url ( PackageLicenseUrl ).

Detail: This license was created by the Github website.

When I upload new version of the library to NuGet, I get a warning:

    
asked by anonymous 04.12.2018 / 00:11

0 answers