kagekirin/Bump CSProj Version
Bumps the current version of 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/write 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 |
| major | 'Whether to bump the major revision.' | — | false |
| minor | 'Whether to bump the minor revision.' | — | false |
| patch | 'Whether to bump the patch revision.' | — | false |
Outputs
| name | description |
|---|---|
| version | Verified and bumped version string |