aloneguid / config

⚙ Config.Net - the easiest configuration framework for .NET developers. No BS.
MIT License
641 stars 85 forks source link

Replace PackageLicenseUrl with PackageLicenseExpression #92

Closed MagicAndre1981 closed 1 year ago

MagicAndre1981 commented 5 years ago

The currently used PackageLicenseUrl should no longer be used and instead you should use PackageLicenseExpression.

licenseUrl is being deprecated, use the PackageLicenseExpression or PackageLicenseFile property

You use MIT, so change the csprj to

<PackageLicenseExpression>MIT</PackageLicenseExpression>

like in this PR

MagicAndre1981 commented 5 years ago

Here is what I see in VS compile output:

>C:\Program Files\dotnet\sdk\2.2.106\Sdks\NuGet.Build.Tasks.Pack\buildCrossTargeting\NuGet.Build.Tasks.Pack.targets(202,5): error NU5125: The 'licenseUrl' element will be deprecated. Consider using the 'license' element instead.
1>    0 Warning(s)
1>    1 Error(s)
PockyBum522 commented 2 years ago

https://github.com/aloneguid/config/pull/135

This PR updates all projects to have <PackageLicenseExpression>MIT</PackageLicenseExpression>

I did not find PackageLicenseUrl anywhere. Did a solution-wide search. Hopefully I didn't miss anything.

Critique and constructive feedback welcome. I am very new to collaboration.