Update .Net Core Package Info
Update package info of one or multiple projects during build
Much more features to come...
Variables
The following variables can be used in all input fields
Build Variables: all Vsts Build Variables can be used.
$(Rev) : the build number revision. Requires Allow Scripts to Access OAuth Token to be enabled and the $(Rev) variable to be present in 'Build Number Format' (otherwise the information is not available on the build). Use $(Rev:r) for '1', $(Rev:rr) for '01', $(Rev:rrr) for '001' and so on.
$(DayOfYear) : generates the numeric day of the year, eg. '116'.
$(Date:{...}) : generates date values in desired format.
Examples:
$(Date:yyyy) : '2017' (Year in four digits)
$(Date:mmmm) : 'April'
$(Date:mm) : '04' (Numeric month)
$(Date:dddd) : 'Sunday'
$(Date:dd) : '23' (The day of the month)
$(Date:HH) : '20' (The hour in24 hour format)
$(Date:MM) : '22' (The minute)
$(Date:ss) : '27' (The second)
See list of date formats for more examples.
Can be combined, with or without separators, to produce custom date formats.
$(Date:yyyy, MMMM, mm, dddd, dd, HH, MM, ss) will generate eg. '2017, April, 04, Sunday, 23, 20, 22, 27'.
Usage
Add a new Update .Net Core Package Info task from the Utility category...
...and configure it as needed.
Parameters include:
- Project: Relative path from repo root of the project file(s). Variables can be used, eg.
$(Build.SourcesDirectory) . You can also use wildcards, eg. **\*.csproj for all *.csproj files in all sub folders.
- Package Id: Left blank, the value is not updated. Variables can be used.
- Authors: Left blank, the value is not updated. Variables can be used.
- Company: Left blank, the value is not updated. Variables can be used.
- Product: Left blank, the value is not updated. Variables can be used.
- Description: Left blank, the value is not updated. Variables can be used.
- Copyright: Left blank, the value is not updated. Variables can be used.
- License Url: Left blank, the value is not updated. Variables can be used.
- Project Url: Left blank, the value is not updated. Variables can be used.
- Icon Url: Left blank, the value is not updated. Variables can be used.
- Repository Url: Left blank, the value is not updated. Variables can be used.
- Repository Type: Left blank, the value is not updated. Variables can be used.
- Tags: Left blank, the value is not updated. Variables can be used.
- Release Notes: Left blank, the value is not updated. Variables can be used.
- Assembly Neutral Language: Left blank, the value is not updated. Variables can be used.
- Package Version - Major: Left blank, the value is not updated. Variables can be used, eg.
$(Build.BuildId) . Must be a numeric value.
- Package Version - Minor: Left blank, the value is not updated. Variables can be used, eg.
$(Build.BuildId) . Must be a numeric value.
- Package Version - Build: Left blank, the value is not updated. Variables can be used, eg.
$(Build.BuildId) . Must be a numeric value.
- Package Version - Revision: Left blank, the value is not updated. Variables can be used, eg.
$(Build.BuildId) . Must be a numeric value.
- Assembly Version - Major: Left blank, the value is not updated. Variables can be used, eg.
$(Build.BuildId) . Must be a numeric value.
- Assembly Version - Minor: Left blank, the value is not updated. Variables can be used, eg.
$(Build.BuildId) . Must be a numeric value.
- Assembly Version - Build: Left blank, the value is not updated. Variables can be used, eg.
$(Build.BuildId) . Must be a numeric value.
- Assembly Version - Revision: Left blank, the value is not updated. Variables can be used, eg.
$(Build.BuildId) . Must be a numeric value.
- Assembly File Version - Major: Left blank, the value is not updated. Variables can be used, eg.
$(Build.BuildId) . Must be a numeric value.
- Assembly File Version - Minor: Left blank, the value is not updated. Variables can be used, eg.
$(Build.BuildId) . Must be a numeric value.
- Assembly File Version - Build: Left blank, the value is not updated. Variables can be used, eg.
$(Build.BuildId) . Must be a numeric value.
- Assembly File Version - Revision: Left blank, the value is not updated. Variables can be used, eg.
$(Build.BuildId) . Must be a numeric value.
Changelog
- 0.0.20: Added 'Assembly Neutral Language' parameter.
- 0.0.19: Added 'Release Notes' parameter.
- 0.0.18: Added 'Tags' parameter.
- 0.0.17: Added 'Repository Type' parameter.
- 0.0.16: Added 'Repository Url' parameter.
- 0.0.15: Added 'Icon Url' parameter.
- 0.0.14: Added 'Project Url' parameter.
- 0.0.13: Added 'License Url' parameter.
- 0.0.12: Added 'Copyright' parameter.
- 0.0.11: Added 'Description' parameter.
- 0.0.10: Added 'Product' parameter.
- 0.0.9: Added 'Company' parameter.
- 0.0.8: Added 'Authors' parameter.
- 0.0.7: Added 'Package Id' parameter.
- 0.0.6: Added 'Rev' variable.
- 0.0.5: Added 'DayOfYear' variable.
- 0.0.4: Added 'Date' variable.
- 0.0.1: Support for 'Package Version, 'Assembly Version' and 'Assembly File Version'.
Having Problems?
Please create an issue on our Github and we will try to help you.
Icons made by Freepik from Flaticon is licensed by CC 3.0 BY
| |