API Reference
Command
Compress-ManagedResource
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
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 SetsParameters
- DestinationPath String
- Directory where the compressed .nupkg file is written.
- PassThru SwitchParameter
- Return the created package as a FileInfo object.
- Path String
- Path to the module resource folder to compress.
- SkipModuleManifestValidate SwitchParameter
- Skip managed module manifest metadata validation before package creation.
Outputs
System.IO.FileInfo