title: dotnet pack with paket fails on core 2.1 - The licenseUrl and license elements cannot be used together
body: <p>dotnet pack with paket fails with <strong>The licenseUrl and license elements cannot be used together</strong></p>
  
  <p>This error is due to changes in dotnetCore SDKs between versions 2.1 and 2.2</p>
  
  <p>Unfortunately, on my Jenkins agents there is only core 2.1 - I started nagging tools people to install 2.2 on them, but in the mean time, is there a way to make it work on 2.1?</p>
  
  <p>I have to use Directory.build.propsas below, because it is part of a template for repositories on our new Jenkins infrastructure and it is overriden on checkout to set the versions</p>
  
  <pre><code>&lt;Project&gt;
      &lt;PropertyGroup&gt;
          &lt;!-- NuGet --&gt;
          &lt;IsPackable&gt;True&lt;/IsPackable&gt;
          &lt;PackageVersion&gt;0.1.5-local&lt;/PackageVersion&gt;
          &lt;NuspecProperties&gt;version=$(PackageVersion);licensePath=$(MSBuildThisFileDirectory)LICENSE.txt&lt;/NuspecProperties&gt;
          &lt;PackageOutputPath&gt;$(MSBuildThisFileDirectory)Artifacts\NuGet\&lt;/PackageOutputPath&gt;
          &lt;PackageLicenseFile&gt;LICENSE.txt&lt;/PackageLicenseFile&gt;
          &lt;!-- Build standards --&gt;
          &lt;OutputPath&gt;bin\&lt;/OutputPath&gt;
          &lt;!-- Assembly information --&gt;
          &lt;FileVersion&gt;0.1.5&lt;/FileVersion&gt;
          &lt;InformationalVersion&gt;local build&lt;/InformationalVersion&gt;
          &lt;AssemblyVersion&gt;0.1.5&lt;/AssemblyVersion&gt;
          &lt;Copyright&gt;Some company&lt;/Copyright&gt;
          &lt;Company&gt;Some company&lt;/Company&gt;
      &lt;/PropertyGroup&gt;
      &lt;ItemGroup&gt;
          &lt;None Include="$(MSBuildThisFileDirectory)LICENSE.txt" Pack="true" PackagePath="$(PackageLicenseFile)"/&gt;
      &lt;/ItemGroup&gt;
  &lt;/Project&gt;
  </code></pre>
  
  <p>I made a repro repo that shows the issue. I cannot edit Directory.Build.prop, only the csproj.</p>
  
  <p>Is there a flag or maybe even older paket version that would work here?</p>
  
  <p><a href="https://github.com/qrzychu/paket_repro" rel="nofollow noreferrer">https://github.com/qrzychu/paket_repro</a></p>
  
  <p><a href="https://github.com/fsprojects/Paket/issues/3657" rel="nofollow noreferrer">https://github.com/fsprojects/Paket/issues/3657</a></p>