error NU5125 when compiling the library
See original GitHub issueYou 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:
- Created 2 years ago
- Comments:6 (6 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
All migrated to github actions and packaging fixed according to .net sdk 5. I hope I did it right.
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.