Command
Compress-ManagedResource
Compresses a managed PowerShell resource folder into a NuGet package.
Syntax
Compress-ManagedResource
[-DestinationPath] <String>
[-PassThru]
[-Path] <String>
[-SkipModuleManifestValidate]
[<CommonParameters>]#Parameter set:
All Parameter SetsDescription
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 -PassThruParameters
- -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.
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.