You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
📝 [docs] Enforces NuGet license URL for MIT license
Updates module metadata and documentation to enforce the inclusion of the NuGet license URL when the MIT license is specified.
- 📝 [docs] Updates the module manifest (`.psd1`) and build script to include the `LicenseUri` property, setting it to `https://licenses.nuget.org/MIT` when the license is MIT.
- This ensures that NuGet clients correctly render the license information.
- 📝 [docs] Modifies the `Update-NuGetPackageMetadata.ps1` script to add or update the `licenseUrl` node in the NuGet package metadata.
- It ensures that the `licenseUrl` is set to `https://licenses.nuget.org/MIT` when the license is MIT.
- Removes the deprecated `licenseUrl` from the metadata after setting the new `licenseUrl`.
- 📝 [docs] Updates the `Publishing.md` documentation to include a note about the NuGet.org requirement for packages declaring the MIT license to also expose the `licenseUrl`.
- 💡 This informs users about the automatic normalization of the `licenseUrl` by the script.
Signed-off-by: Nick2bad4u <[email protected]>
The GitHub publish workflow runs this script automatically.
35
35
36
+
> **Note:** NuGet.org expects packages that declare the `MIT` license expression to also expose `https://licenses.nuget.org/MIT` via `licenseUrl`. The normalization script sets this automatically so older NuGet clients render the license correctly.
37
+
36
38
### Getting an API Key
37
39
38
40
1. Create an account at <https://www.powershellgallery.com>.
0 commit comments