Skip to content

Commit

Permalink
Win support.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbritch committed Feb 12, 2024
1 parent 0162871 commit a8eaa8f
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 27 deletions.
7 changes: 4 additions & 3 deletions 8.0/Apps/GameOfLife/GameOfLife.sln
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 25.0.1706.8
# Visual Studio Version 17
VisualStudioVersion = 17.8.34525.116
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GameOfLife", "GameOfLife\GameOfLife.csproj", "{236EDA58-32B7-4789-8327-FCF9016E8621}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GameOfLife", "GameOfLife\GameOfLife.csproj", "{236EDA58-32B7-4789-8327-FCF9016E8621}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand All @@ -13,6 +13,7 @@ Global
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{236EDA58-32B7-4789-8327-FCF9016E8621}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{236EDA58-32B7-4789-8327-FCF9016E8621}.Debug|Any CPU.Build.0 = Debug|Any CPU
{236EDA58-32B7-4789-8327-FCF9016E8621}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
{236EDA58-32B7-4789-8327-FCF9016E8621}.Release|Any CPU.ActiveCfg = Release|Any CPU
{236EDA58-32B7-4789-8327-FCF9016E8621}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
Expand Down
14 changes: 7 additions & 7 deletions 8.0/Apps/GameOfLife/GameOfLife/AboutPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

public partial class AboutPage : ContentPage
{
public AboutPage()
{
InitializeComponent();
}
public AboutPage()
{
InitializeComponent();
}

async void OnHyperlinkTapped(object sender, EventArgs args)
{
Expand All @@ -14,7 +14,7 @@ async void OnHyperlinkTapped(object sender, EventArgs args)
}

async void OnCloseButtonClicked(object sender, EventArgs e)
{
await Navigation.PopModalAsync();
}
{
await Navigation.PopModalAsync();
}
}
5 changes: 1 addition & 4 deletions 8.0/Apps/GameOfLife/GameOfLife/GameOfLife.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'tizen'">6.5</SupportedOSPlatformVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|net8.0-ios|AnyCPU'">
<CreatePackage>false</CreatePackage>
</PropertyGroup>
<ItemGroup>
<!-- App Icon -->
<MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#512BD4" />
Expand All @@ -62,7 +59,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="$(MauiVersion)" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.0-rc.2.23479.6" />
<PackageReference Include="Microsoft.Extensions.Logging.Debug" Version="8.0.0" />
</ItemGroup>

</Project>
26 changes: 13 additions & 13 deletions 8.0/Apps/GameOfLife/GameOfLife/MauiProgram.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,22 @@ namespace GameOfLife;

public static class MauiProgram
{
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.ConfigureFonts(fonts =>
{
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
});
public static MauiApp CreateMauiApp()
{
var builder = MauiApp.CreateBuilder();
builder
.UseMauiApp<App>()
.ConfigureFonts(fonts =>
{
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
});

#if DEBUG
builder.Logging.AddDebug();
builder.Logging.AddDebug();
#endif

return builder.Build();
}
return builder.Build();
}
}

0 comments on commit a8eaa8f

Please sign in to comment.