You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
4
+
5
+
## Inputs
6
+
7
+
### `csproj` (required)
8
+
9
+
The path to the .cproj file for your MAUI application.
10
+
11
+
### `version`
12
+
13
+
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.
14
+
15
+
### `displayVersion`
16
+
17
+
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.
18
+
19
+
### `printFile`
20
+
21
+
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.
22
+
23
+
24
+
## Example usage
25
+
26
+
```yaml
27
+
uses: managedcode/MAUIAppVersion@v1
28
+
with:
29
+
csproj: 'path/to/my-project.csproj'
30
+
version: ${{ github.run_number }} # to keep value unique
31
+
displayVersion: '1.0.0'
32
+
printFile: true # optional
33
+
```
34
+
35
+
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.
0 commit comments