API Reference
Command
New-ConfigurationExternalAssetFile
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
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 SetsParameters
- Architecture String
- Optional architecture metadata written to the generated manifest.
- FileName String
- Destination file name when Path is not specified.
- Path String
- Destination path relative to the bundle output directory. Defaults to FileName.
- Runtime String
- Runtime or payload group, such as netcore, netfx, linux-x64, or win-x64.
- Sha256 String
- Optional expected SHA256. When provided, mismatches fail the build.
- Uri String
- HTTP(S) URI, file URI, rooted local path, or project-relative local path for this file.
Outputs
PowerForge.ExternalAssetFileConfiguration