When running nuget pack on our nuspecs I noticed some warnings
Some elements were deprecated in nuspecs:
WARNING: NU5125: The 'licenseUrl' element will be deprecated. Consider using the 'license' element instead.
WARNING: NU5048: The 'PackageIconUrl'/'iconUrl' element is deprecated. Consider using the 'PackageIcon'/'icon' element instead. Learn more at https://aka.ms/deprecateIconUrl
Also there seems to be something missing
WARNING: NU5131: References were found in the nuspec, but some reference assemblies were not found in both the nuspec and ref folder. Add the following reference assemblies:
- Add DualityPhysics.dll to the ref/any/ directory
WARNING: NU5128: Some target frameworks declared in the dependencies group of the nuspec and the lib/ref folder do not have exact matches in the other location. Consult the list of actions below:
- Add a dependency group for .NETStandard2.0 to the nuspec
Steps
Run nuget pack .\Duality.Editor.nuspec in the NuGetPackageSpecs folder and notice the following warnings:
WARNING: NU5125: The 'licenseUrl' element will be deprecated. Consider using the 'license' element instead.
WARNING: NU5131: References were found in the nuspec, but some reference assemblies were not found in both the nuspec and ref folder. Add the following reference assemblies:
- Add DualityEditor.exe to the ref/any/ directory
WARNING: NU5048: The 'PackageIconUrl'/'iconUrl' element is deprecated. Consider using the 'PackageIcon'/'icon' element instead. Learn more at https://aka.ms/deprecateIconUrl
Summary
When running
nuget pack
on our nuspecs I noticed some warningsSome elements were deprecated in nuspecs:
Also there seems to be something missing
Steps
Run
nuget pack .\Duality.Editor.nuspec
in the NuGetPackageSpecs folder and notice the following warnings:You get similar warnings with other nuspecs.