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

New-ConfigurationExternalAssetFile

Namespace PSPublishModule
Inputs
None
Outputs
PowerForge.ExternalAssetFileConfiguration

Creates a file entry for an external asset bundle.

Remarks

File entries are passed to New-ConfigurationExternalAsset. Each entry declares where the build pipeline obtains a file from, where it lands inside the output folder, and which runtime or architecture metadata should be written to the generated manifest.

Examples

Authored help example

Create a web-download file entry


New-ConfigurationExternalAssetFile -Runtime netcore -Architecture x64 -FileName tool.zip -Uri 'https://example.test/tool.zip'
        

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

New-ConfigurationExternalAssetFile [-Architecture <String>] -FileName <String> [-Path <String>] -Runtime <String> [-Sha256 <String>] -Uri <String> [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Architecture String optionalposition: namedpipeline: False
Optional architecture metadata written to the generated manifest.
FileName String requiredposition: namedpipeline: False
Destination file name when Path is not specified.
Path String optionalposition: namedpipeline: False
Destination path relative to the bundle output directory. Defaults to FileName.
Runtime String requiredposition: namedpipeline: False
Runtime or payload group, such as netcore, netfx, linux-x64, or win-x64.
Sha256 String optionalposition: namedpipeline: False
Optional expected SHA256. When provided, mismatches fail the build.
Uri String requiredposition: namedpipeline: Falsealiases: Url
HTTP(S) URI, file URI, rooted local path, or project-relative local path for this file.

Outputs

PowerForge.ExternalAssetFileConfiguration