ConvertTo-NuSpec.ps1
#Requires -Modules PowerShellGet #Requires -Version 5.0 <#PSScriptInfo .VERSION 1.0.0 .GUID e17689b6-f7a0-4d45-a96b-dfa0c251eb77 .AUTHOR Jimmy Briggs .COMPANYNAME jimbrig .COPYRIGHT Jimmy Briggs | 2023 .TAGS Nuget Module Automation Tools .LICENSEURI https://github.com/jimbrig/PSScripts/blob/main/LICENSE .PROJECTURI https://github.com/jimbrig/PSScripts/tree/main/ConvertTo-NuSpec/ .ICONURI .EXTERNALMODULEDEPENDENCIES .REQUIREDSCRIPTS .EXTERNALSCRIPTDEPENDENCIES Functions.ps1 .RELEASENOTES 1.0.0 Initial Release .PRIVATEDATA #> <# .SYNOPSIS Convert to `.nuspec` from `.psd1`. .DESCRIPTION Generates a NuGet Specification (`.nuspec`) file based on pre-existing PowerShell Module Manifest (`.psd1`) file. .PARAMETER ManifestPath Path to the `.psd1` module manifest. .PARAMETER DestinationFolder Path to output for the `.nuspec` file. .EXAMPLE ./ConvertTo-NuSpec.ps1 -ManifestPath "<path/to/module>/Module.psd1" -DestinationPath "Module.nuspec" # Converts the module's .psd1 to .nuspec #> [CmdletBinding(PositionalBinding = $false)] Param( [Parameter(Mandatory = $true)] [ValidateScript({ Test-Path $_ -PathType leaf -Include '*.psd1' })] [string] $ManifestPath, [Parameter(Mandatory = $false)] [ValidateScript({ Test-Path $_ -PathType 'Container' })] [string] $DestinationFolder ) # Dot Source Dependent Functions $ErrorActionPreference = 'Stop' $ScriptRoot = Split-Path $MyInvocation.MyCommand.Path . "$ScriptRoot\Functions.ps1" Write-Output -InputObject "Generating .nuspec file based on PowerShell Module Manifest '$ManifestPath'" $param = @{ 'ManifestPath' = $ManifestPath } If ($PSBoundParameters.ContainsKey('DestinationFolder')) { $param.Add('DestinationFolder', $DestinationFolder) } $NuspecFile = New-NuSpecFile @param If ($NuspecFile) { Write-Output "Nuspec file created - '$NuspecFile'." Write-Output 'Done. ' } else { Write-Error 'Failed to create Nuspec file.' } # SIG # Beg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