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.186
Language: C# Updated: 2026-11-04
Command

New-ConfigurationExternalAssetFile

Module
PSPublishModule
Inputs
None
Outputs
PowerForge.ExternalAssetFileConfiguration

Creates a file entry for an external asset bundle.

Syntax

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

Description

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

Create a web-download file entry

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

Parameters

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

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.