PowerShell / PSResourceGet

PSResourceGet is the package manager for PowerShell
https://www.powershellgallery.com/packages/Microsoft.PowerShell.PSResourceGet
MIT License
496 stars 94 forks source link

Expose method for generating a .nuspec #1034

Open Pxtl opened 1 year ago

Pxtl commented 1 year ago

Summary of the new feature / enhancement

The .psd1 file contains all of the info needed to generate a .nuspec, which you're using internally. However, not all nuget hosts are fully compatible with PowerShellGet. Rather than try to target them perfectly, can you not just expose the internals to allow us to build the .nupkg ourselves?

Proposed technical implementation details (optional)

Extract the code for generating .nuspec in https://github.com/PowerShell/PowerShellGet/blob/f41ee9c9583ba26b982008d943a54eb73d4a68da/src/code/PublishPSResource.cs into its own cmdlet.

partlythomas commented 8 months ago

+1 It would be beneficial to allow the created nuspec file to persist rather than immediately remove it once the package is published/attempted published.