https://github.com/managedcode/mauiappversion
This action updates the application version and/or display version properties in a .cproj file for a MAUI application. You can use this action as part of your CI/CD workflow to automatically update the version properties when building and publishing your MAUI application.
https://github.com/managedcode/mauiappversion
bump bumpversion csproj maui version
Last synced: about 1 month ago
JSON representation
This action updates the application version and/or display version properties in a .cproj file for a MAUI application. You can use this action as part of your CI/CD workflow to automatically update the version properties when building and publishing your MAUI application.
- Host: GitHub
- URL: https://github.com/managedcode/mauiappversion
- Owner: managedcode
- License: mit
- Created: 2023-04-11T21:52:26.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-15T19:08:21.000Z (over 1 year ago)
- Last Synced: 2024-10-31T10:39:11.338Z (11 months ago)
- Topics: bump, bumpversion, csproj, maui, version
- Language: JavaScript
- Homepage:
- Size: 802 KB
- Stars: 17
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Update MAUI App Version Action
This action updates the application version and/or display version properties in a .cproj file for a MAUI application. You can use this action as part of your CI/CD workflow to automatically update the version properties when building and publishing your MAUI application.
## Inputs
### `csproj` (required)
The path to the .cproj file for your MAUI application.
### `version`
The new value to set for the `ApplicationVersion` property in the .cproj file. If this input is not provided, the `ApplicationVersion` property will not be updated.
### `displayVersion`
The new value to set for the `ApplicationDisplayVersion` property in the .cproj file. If this input is not provided, the `ApplicationDisplayVersion` property will not be updated.
### `printFile`
Whether to print the contents of the updated .cproj file to the console. Set to `true` to print the contents of the file, or leave blank to not print the file contents.
## Example usage
```yaml
uses: managedcode/MAUIAppVersion@v1
with:
csproj: 'path/to/my-project.csproj'
version: ${{ github.run_number }} # to keep value unique
displayVersion: '1.0.0'
printFile: true # optional
```This example updates the `ApplicationVersion` property to `128` and the `ApplicationDisplayVersion` property to `1.0.0` in the .cproj file located at `path/to/my-project.csproj`. The contents of the updated .cproj file will be printed to the console.