Skip to content

Commit

Permalink
feat: set the Version
Browse files Browse the repository at this point in the history
  • Loading branch information
dansiegel committed May 21, 2024
1 parent 7d3e553 commit 20e16f4
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Uno.Sdk/targets/Uno.SingleProject.Desktop.targets
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
<PropertyGroup>
<ApplicationManifest Condition="$(ApplicationManifest) == '' AND Exists('$(DesktopProjectFolder)app.manifest')">$(DesktopProjectFolder)app.manifest</ApplicationManifest>
<ApplicationManifest Condition="$(ApplicationManifest) == '' AND Exists('app.manifest')">app.manifest</ApplicationManifest>

<!-- Follow the Android, iOS, & MacCatalyst SDK's -->
<!-- Default to 1, if blank -->
<ApplicationVersion Condition=" '$(ApplicationVersion)' == '' ">1</ApplicationVersion>
<Version Condition=" $([System.Version]::TryParse ('$(ApplicationDisplayVersion)', $([System.Version]::Parse('1.0')))) ">$(ApplicationDisplayVersion)</Version>
<ApplicationDisplayVersion Condition=" '$(ApplicationDisplayVersion)' == '' ">$(Version)</ApplicationDisplayVersion>
</PropertyGroup>
<ItemGroup>
<EmbeddedResource Include="$(DesktopProjectFolder)Package.appxmanifest"
Expand Down
6 changes: 6 additions & 0 deletions src/Uno.Sdk/targets/Uno.SingleProject.Wasm.targets
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
https://aka.platform.uno/wasm-deeplink
-->
<WasmShellWebAppBasePath Condition="$(WasmShellWebAppBasePath) == ''">/</WasmShellWebAppBasePath>

<!-- Follow the Android, iOS, & MacCatalyst SDK's -->
<!-- Default to 1, if blank -->
<ApplicationVersion Condition=" '$(ApplicationVersion)' == '' ">1</ApplicationVersion>
<Version Condition=" $([System.Version]::TryParse ('$(ApplicationDisplayVersion)', $([System.Version]::Parse('1.0')))) ">$(ApplicationDisplayVersion)</Version>
<ApplicationDisplayVersion Condition=" '$(ApplicationDisplayVersion)' == '' ">$(Version)</ApplicationDisplayVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Optimize)'!='true'">
Expand Down
6 changes: 6 additions & 0 deletions src/Uno.Sdk/targets/Uno.SingleProject.WinAppSdk.targets
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
<Project>
<PropertyGroup>
<UseWinUI>true</UseWinUI>

<!-- Follow the Android, iOS, & MacCatalyst SDK's -->
<!-- Default to 1, if blank -->
<ApplicationVersion Condition=" '$(ApplicationVersion)' == '' ">1</ApplicationVersion>
<Version Condition=" $([System.Version]::TryParse ('$(ApplicationDisplayVersion)', $([System.Version]::Parse('1.0')))) ">$(ApplicationDisplayVersion)</Version>
<ApplicationDisplayVersion Condition=" '$(ApplicationDisplayVersion)' == '' ">$(Version)</ApplicationDisplayVersion>
</PropertyGroup>

<PropertyGroup Condition=" '$(IsUnoHead)' == 'true' ">
Expand Down

0 comments on commit 20e16f4

Please sign in to comment.