kagekirin/Get CSProj Version
Retrieves the current version from a given .csproj
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
- Runtime
- Deprecated runtime
Inputs
| name | description | required | default |
|---|---|---|---|
| file | 'The .csproj from which to read the version.' 'Set if you need to read a different file / or different folder.' | yes | — |
| regex | 'ECMAScript Regular Expression to parse the version string for verification.' 'Defaults to being semver, i.e. "major.minor.patch"' 'Set if you to be compatible with a different, non-semver format.' | no | ^(?<major>0|[1-9]\d*)\.(?<minor>0|[1-9]\d*)(\.(?<patch>0|[1-9]\d*))?(?:-(?<prerelease>(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+(?<buildmetadata>[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$ |
| xpath | 'XPath to version element.' | no | //PropertyGroup/Version |
Outputs
| name | description |
|---|---|
| version | Retrieved and verified version string |