Skip to content

Commit 109a165

Browse files
:|
1 parent c35ebed commit 109a165

4 files changed

Lines changed: 35 additions & 24 deletions

File tree

.github/workflows/windows_navigation_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
run: dotnet restore TransactionMobile.Maui.sln --source ${{ secrets.PUBLICFEEDURL }} --source ${{ secrets.PRIVATEFEED_URL }} --source https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json
4040

4141
- name: Build Code
42-
run: dotnet build TransactionMobile.Maui/TransactionMobile.Maui.csproj -f net9.0-android -c Release --no-restore
42+
run: dotnet build TransactionMobile.Maui/TransactionMobile.Maui.csproj -f net9.0-windows10.0.19041.0 -c Release --no-restore
4343

4444
- name: Decrypt PFX File
4545
run: |

TransactionMobile.Maui.BusinessLogic/TransactionMobile.Maui.BusinessLogic.csproj

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
</PropertyGroup>
1919

2020
<PropertyGroup>
21-
<UseMaui>true</UseMaui>
22-
<SingleProject>true</SingleProject>
21+
<!--<UseMaui>true</UseMaui>
22+
<SingleProject>true</SingleProject>-->
2323
<DebugType>Full</DebugType>
2424
<ImplicitUsings>enable</ImplicitUsings>
2525

@@ -53,8 +53,13 @@
5353
<PackageReference Include="SQLitePCLRaw.bundle_green" Version="2.1.11" />
5454
<PackageReference Include="SQLitePCLRaw.provider.dynamic_cdecl" Version="2.1.11" />
5555
<PackageReference Include="MetroLog.Maui" Version="2.1.0" />
56+
<PackageReference Include="Microsoft.Maui.Controls" Version="9.0.70" />
5657
</ItemGroup>
5758

59+
<PropertyGroup Condition="$(TargetFramework.Contains('-windows'))">
60+
<RuntimeIdentifiers>win-x64;win-arm64</RuntimeIdentifiers>
61+
</PropertyGroup>
62+
5863
<ItemGroup Condition="'$(TargetFramework)' != 'net9.0-ios'">
5964
<PackageReference Include="Microsoft.AppCenter" Version="5.0.7" />
6065
<PackageReference Include="Microsoft.AppCenter.Distribute" Version="5.0.7" />
@@ -84,14 +89,12 @@
8489
</PackageReference>
8590
</ItemGroup>
8691

92+
<Target Name="RemoveDuplicatePdbs" AfterTargets="ResolvePublishFiles">
93+
<ItemGroup>
94+
<ResolvedFileToPublish Remove="@(ResolvedFileToPublish)"
95+
Condition="'%(ResolvedFileToPublish.RelativePath)' == 'TransactionMobile.Maui.BusinessLogic.pdb'
96+
and '%(ResolvedFileToPublish.TargetPath)' == 'TransactionMobile.Maui.BusinessLogic.pdb'" />
97+
</ItemGroup>
98+
</Target>
8799

88-
<!--<ItemGroup Condition="'$(TargetFramework)' != 'net9.0'">
89-
<PackageReference Update="Microsoft.Maui.Controls" Version="8.0.14" />
90-
<PackageReference Update="Microsoft.Maui.Controls.Compatibility" Version="8.0.14" />
91-
</ItemGroup>-->
92-
93-
94-
<ItemGroup>
95-
<PackageReference Update="Microsoft.Maui.Controls" Version="9.0.70" />
96-
</ItemGroup>
97100
</Project>

TransactionMobile.Maui/Platforms/Windows/Package.appxmanifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
<Identity
1010
Name="TransactionMobile"
11-
Publisher="CN=TransactionProcessing" Version="1.0.0.0"/>
11+
Publisher="CN=TransactionProcessing" Version="1.0.5.0"/>
1212

1313
<Properties>
1414
<DisplayName>TransactionMobile</DisplayName>

TransactionMobile.Maui/TransactionMobile.Maui.csproj

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,10 @@
1313
<TargetFrameworks>net9.0-android;net9.0-ios;net9.0-maccatalyst</TargetFrameworks>
1414
</PropertyGroup>
1515

16-
<PropertyGroup Condition="'$(TargetFramework)' == 'net9.0-maccatalyst'">
17-
<RuntimeIdentifiers>maccatalyst-x64;maccatalyst-arm64</RuntimeIdentifiers>
18-
</PropertyGroup>
19-
2016
<PropertyGroup>
2117
<OutputType>Exe</OutputType>
2218
<RootNamespace>TransactionMobile.Maui</RootNamespace>
23-
<UseMaui>true</UseMaui>
19+
<!--<UseMaui>true</UseMaui>-->
2420
<SingleProject>true</SingleProject>
2521
<ImplicitUsings>enable</ImplicitUsings>
2622
<PublishReadyToRun>false</PublishReadyToRun>
@@ -39,7 +35,14 @@
3935
<TargetPlatformMinVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">10.0.17763.0</TargetPlatformMinVersion>
4036
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'tizen'">6.5</SupportedOSPlatformVersion>
4137
<PackageCertificateThumbprint>376AD93CB29454751B808E6883ED14E377D979F2</PackageCertificateThumbprint>
42-
<AppxPackageSigningEnabled>True</AppxPackageSigningEnabled>
38+
<AppxPackageSigningEnabled>False</AppxPackageSigningEnabled>
39+
<GenerateAppInstallerFile>True</GenerateAppInstallerFile>
40+
<AppxPackageSigningTimestampDigestAlgorithm>SHA256</AppxPackageSigningTimestampDigestAlgorithm>
41+
<AppxAutoIncrementPackageRevision>True</AppxAutoIncrementPackageRevision>
42+
<AppxSymbolPackageEnabled>False</AppxSymbolPackageEnabled>
43+
<GenerateTestArtifacts>True</GenerateTestArtifacts>
44+
<AppInstallerUri>c:\temp</AppInstallerUri>
45+
<HoursBetweenUpdateChecks>0</HoursBetweenUpdateChecks>
4346
</PropertyGroup>
4447

4548
<ItemGroup>
@@ -262,9 +265,13 @@
262265
</ItemGroup>
263266

264267
<PropertyGroup Condition="$(TargetFramework.Contains('-maccatalyst'))">
265-
<RuntimeIdentifiers>maccatalyst-x64</RuntimeIdentifiers>
268+
<RuntimeIdentifiers>maccatalyst-x64;maccatalyst-arm64</RuntimeIdentifiers>
266269
</PropertyGroup>
267270

271+
<PropertyGroup Condition="$(TargetFramework.Contains('-windows'))">
272+
<RuntimeIdentifiers>win-x64;win-arm64</RuntimeIdentifiers>
273+
</PropertyGroup>
274+
268275
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net9.0-android|AnyCPU'">
269276
<AndroidPackageFormat>apk</AndroidPackageFormat>
270277
</PropertyGroup>
@@ -294,9 +301,10 @@
294301
<Optimize>False</Optimize>
295302
</PropertyGroup>
296303

297-
<ItemGroup>
298-
<Content Remove="**\WindowRootViewStyle.xbf" />
299-
<None Remove="**\WindowRootViewStyle.xbf" />
300-
</ItemGroup>
304+
<Target Name="RemoveWindowRootViewStyleXbf" BeforeTargets="GenerateProjectPriFile">
305+
<ItemGroup>
306+
<PRIResource Remove="@(PRIResource)" Condition="'%(PRIResource.Identity)' == 'Files/Microsoft.Maui/Platform/Windows/Styles/WindowRootViewStyle.xbf'" />
307+
</ItemGroup>
308+
</Target>
301309

302310
</Project>

0 commit comments

Comments
 (0)