question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error NU5125 when compiling the library

See original GitHub issue

You still use License and Icon URLs, which should be avoided and replaced by PackageLicenseExpression element:

<PropertyGroup>
    <PackageLicenseExpression>MIT</PackageLicenseExpression>
</PropertyGroup>

and PackageIcon file.

My RP #116 only compiles if TreatWarningsAsErrors is set to false, but I wanted to let you make the final decision what to do to solve this.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
aloneguidcommented, Sep 16, 2021

All migrated to github actions and packaging fixed according to .net sdk 5. I hope I did it right.

0reactions
MagicAndre1981commented, Oct 5, 2021

Could you try to do a clean clone and build just to make sure please?

I did this and get the same error when I run dotnet pack -c Release /p:PackageVersion=4.17.1-beta /p:Version=4.17.1-beta /p:AssemblyVersion=4.17.1 /p:FileVersion=4.17.1

I had to run dotnet build -c Release /p:PackageVersion=4.17.1-beta /p:Version=4.17.1-beta /p:AssemblyVersion=4.17.1 /p:FileVersion=4.17.1 in first step. So the pack command skips the compile of this 1 project and later complains about missing file. Wired.

In your script, you still use the old 5.0.100 SDK, you update to latest version 5.0.401, otherwise you get warnings with the DotNet.ReproducibleBuilds I’ve added in my RP.

Read more comments on GitHub >

github_iconTop Results From Across the Web

NuGet Error NU5125
The licenseUrl element is being replaced by the license element. Solution. If you create your NuGet package using dotnet pack or msbuild -t:pack ......
Read more >
NuGet Errors and Warnings Reference
Complete reference for warnings and errors issued from NuGet during various NuGet operations.
Read more >
.NET Core/Standard .csproj file, embedding license ...
NuGet.Build.Tasks.Pack.targets(202, 5): [NU5125] The 'licenseUrl' element will be deprecated. Consider using the 'license' element instead.
Read more >
Build error using Multiplatform Library template when ...
Build error using Multiplatform Library template when Xamarin.Android code is in the Android projectClosed - Fixed View solution
Read more >
Publish Source Link NuGet Packages with Azure Pipelines
Source Link allows you to publish debuggable NuGet packages. Source Link adds debug symbols to compiled code that point back to your Git ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found