Write Assembly Versions
- 17 Feb 2022
- 1 Minute to read
- Print
- DarkLight
- PDF
Write Assembly Versions
- Updated on 17 Feb 2022
- 1 Minute to read
- Print
- DarkLight
- PDF
Article Summary
Share feedback
Thanks for sharing your feedback!
This is generated from the built in components of BuildMaster 7.0.0, and may be different than what you have installed (especially if you have extensions); go to [User Icon] -> Documentation within your BuildMaster instance to see exactly what operations are available.
Write Assembly Versions
Updates AssemblyVersion, AssemblyFileVersion, and AssemblyInformationalVersion Attributes (in AssemblyInfo source files).
Script usage:
DotNet::Write-AssemblyVersion( [AssemblyVersion: <text>], [FileVersion: <text>], [InformationalVersion: <text>], [FromDirectory: <text>], [Include: <@(text)>], [Exclude: <@(text)>] );
Arguments:
Name | Format | Script Usage | Usage Notes |
---|---|---|---|
Assembly version | text | AssemblyVersion | |
File version | text | FileVersion | |
Informational version | text | InformationalVersion | |
From directory | text | FromDirectory | |
Include | @(text) | Include | See KB#1119 to learn more about masking syntax. |
Exclude | @(text) | Exclude |
Note: This operation is intended to be used when assembly version attributes are stored directly in AssemblyInfo.cs. To set these values in the project file instead, use DotNet::SetProjectVersion.
See also:
Was this article helpful?