Project

PSPublishModule

Build, test, version, sign, and publish PowerShell modules with reusable PowerForge pipelines.

Stars 48
Forks 16
PowerShell Gallery downloads 17,213
Release v3.0.169
Language: C# Updated: 2026-10-13

API Reference

Command

Compress-ManagedResource

Namespace PSPublishModule
Inputs
None
Outputs
System.IO.FileInfo

Compresses a managed PowerShell resource folder into a NuGet package.

Remarks

This PSResourceGet-shaped surface currently packages PowerShell module folders through the managed C# pack service. Script resources remain intentionally unsupported until the managed script metadata lane exists.

Examples

Authored help example

Compress a module folder to a package directory


Compress-ManagedResource -Path C:\Source\Company.Tools -DestinationPath C:\Packages -PassThru
        

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

Compress-ManagedResource -DestinationPath <String> [-PassThru] -Path <String> [-SkipModuleManifestValidate] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

DestinationPath String requiredposition: 1pipeline: Falsealiases: OutputDirectory, OutputPath
Directory where the compressed .nupkg file is written.
PassThru SwitchParameter optionalposition: namedpipeline: False
Return the created package as a FileInfo object.
Path String requiredposition: 0pipeline: False
Path to the module resource folder to compress.
SkipModuleManifestValidate SwitchParameter optionalposition: namedpipeline: False
Skip managed module manifest metadata validation before package creation.

Outputs

System.IO.FileInfo