Skip to content

Commit b85134a

Browse files
authored
Fix: Multipling breadcrumb (#9)
* Fix bug introduced with .net 8 * Upgraded project to .net 8
1 parent 58f496d commit b85134a

File tree

14 files changed

+95
-107
lines changed

14 files changed

+95
-107
lines changed

Demo/App.csproj

Lines changed: 51 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,53 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
3-
<PropertyGroup>
4-
<TargetFrameworks>net7.0-android;net7.0-ios;</TargetFrameworks>
5-
<OutputType>Exe</OutputType>
6-
<RootNamespace>App</RootNamespace>
7-
<UseMaui>true</UseMaui>
8-
<SingleProject>true</SingleProject>
9-
<ImplicitUsings>enable</ImplicitUsings>
2+
<PropertyGroup>
3+
<TargetFrameworks>net8.0-android;net8.0-ios;</TargetFrameworks>
4+
<OutputType>Exe</OutputType>
5+
<RootNamespace>App</RootNamespace>
6+
<UseMaui>true</UseMaui>
7+
<SingleProject>true</SingleProject>
8+
<ImplicitUsings>enable</ImplicitUsings>
109
<Nullable>enable</Nullable>
11-
12-
<!-- Display name -->
13-
<ApplicationTitle>Breadcrumb demo</ApplicationTitle>
14-
15-
<!-- App Identifier -->
16-
<ApplicationId>IeuanWalker.Demo.Breadcrumb</ApplicationId>
17-
<ApplicationIdGuid>78B8245A-7B57-41B6-A3BC-DA159DC85DE2</ApplicationIdGuid>
18-
19-
<!-- Versions -->
20-
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
21-
<ApplicationVersion>1</ApplicationVersion>
22-
23-
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">14.2</SupportedOSPlatformVersion>
24-
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>
25-
</PropertyGroup>
26-
27-
<ItemGroup>
28-
<!-- App Icon -->
29-
<MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#512BD4" />
30-
31-
<!-- Splash Screen -->
32-
<MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#512BD4" BaseSize="128,128" />
33-
34-
<!-- Images -->
35-
<MauiImage Include="Resources\Images\*" />
36-
<MauiImage Update="Resources\Images\dotnet_bot.svg" BaseSize="168,208" />
37-
38-
<!-- Custom Fonts -->
39-
<MauiFont Include="Resources\Fonts\*" />
40-
41-
<!-- Raw Assets (also remove the "Resources\Raw" prefix) -->
42-
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
43-
</ItemGroup>
44-
45-
<ItemGroup>
46-
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.0.0" />
47-
</ItemGroup>
48-
49-
<ItemGroup>
50-
<ProjectReference Include="..\Scr\Breadcrumb.csproj" />
51-
</ItemGroup>
52-
53-
<ItemGroup>
54-
<MauiXaml Update="Resources\Styles\DarkTheme.xaml">
55-
<Generator>MSBuild:Compile</Generator>
56-
</MauiXaml>
57-
<MauiXaml Update="Resources\Styles\DefaultTheme.xaml">
58-
<Generator>MSBuild:Compile</Generator>
59-
</MauiXaml>
60-
<MauiXaml Update="Resources\Styles\LightTheme.xaml">
61-
<Generator>MSBuild:Compile</Generator>
62-
</MauiXaml>
63-
</ItemGroup>
64-
65-
</Project>
10+
<!-- Display name -->
11+
<ApplicationTitle>Breadcrumb demo</ApplicationTitle>
12+
<!-- App Identifier -->
13+
<ApplicationId>IeuanWalker.Demo.Breadcrumb</ApplicationId>
14+
<ApplicationIdGuid>78B8245A-7B57-41B6-A3BC-DA159DC85DE2</ApplicationIdGuid>
15+
<!-- Versions -->
16+
<ApplicationDisplayVersion>1.0</ApplicationDisplayVersion>
17+
<ApplicationVersion>1</ApplicationVersion>
18+
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">14.2</SupportedOSPlatformVersion>
19+
<SupportedOSPlatformVersion Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">21.0</SupportedOSPlatformVersion>
20+
</PropertyGroup>
21+
<ItemGroup>
22+
<!-- App Icon -->
23+
<MauiIcon Include="Resources\AppIcon\appicon.svg" ForegroundFile="Resources\AppIcon\appiconfg.svg" Color="#512BD4" />
24+
<!-- Splash Screen -->
25+
<MauiSplashScreen Include="Resources\Splash\splash.svg" Color="#512BD4" BaseSize="128,128" />
26+
<!-- Images -->
27+
<MauiImage Include="Resources\Images\*" />
28+
<MauiImage Update="Resources\Images\dotnet_bot.svg" BaseSize="168,208" />
29+
<!-- Custom Fonts -->
30+
<MauiFont Include="Resources\Fonts\*" />
31+
<!-- Raw Assets (also remove the "Resources\Raw" prefix) -->
32+
<MauiAsset Include="Resources\Raw\**" LogicalName="%(RecursiveDir)%(Filename)%(Extension)" />
33+
</ItemGroup>
34+
<ItemGroup>
35+
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.0.0" />
36+
<PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
37+
<PackageReference Include="Microsoft.Maui.Controls.Compatibility" Version="$(MauiVersion)" />
38+
</ItemGroup>
39+
<ItemGroup>
40+
<ProjectReference Include="..\Scr\Breadcrumb.csproj" />
41+
</ItemGroup>
42+
<ItemGroup>
43+
<MauiXaml Update="Resources\Styles\DarkTheme.xaml">
44+
<Generator>MSBuild:Compile</Generator>
45+
</MauiXaml>
46+
<MauiXaml Update="Resources\Styles\DefaultTheme.xaml">
47+
<Generator>MSBuild:Compile</Generator>
48+
</MauiXaml>
49+
<MauiXaml Update="Resources\Styles\LightTheme.xaml">
50+
<Generator>MSBuild:Compile</Generator>
51+
</MauiXaml>
52+
</ItemGroup>
53+
</Project>

Demo/App.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="UTF-8" ?>
1+
<?xml version="1.0" encoding="UTF-8" ?>
22
<Application x:Class="App.App"
33
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
44
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"

Demo/Pages/BasePage.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8" ?>
1+
<?xml version="1.0" encoding="utf-8" ?>
22
<ContentPage x:Class="App.Pages.BasePage"
33
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
44
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"

Demo/Pages/TestPage1.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8" ?>
1+
<?xml version="1.0" encoding="utf-8" ?>
22
<pages:BasePage x:Class="App.Pages.TestPage1"
33
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
44
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"

Demo/Pages/TestPage2.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8" ?>
1+
<?xml version="1.0" encoding="utf-8" ?>
22
<pages:BasePage x:Class="App.Pages.TestPage2"
33
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
44
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"

Demo/Pages/TestPage3.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8" ?>
1+
<?xml version="1.0" encoding="utf-8" ?>
22
<pages:BasePage x:Class="App.Pages.TestPage3"
33
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
44
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"

Demo/Platforms/Android/MainActivity.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using Android.App;
22
using Android.Content.PM;
3+
using Microsoft.Maui;
34

45
namespace App;
56

Demo/Platforms/iOS/AppDelegate.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
using Foundation;
2+
using Microsoft.Maui;
23

34
namespace App;
45

Demo/Resources/Styles/DarkTheme.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8" ?>
1+
<?xml version="1.0" encoding="utf-8" ?>
22
<ResourceDictionary x:Class="App.Resources.Styles.DarkTheme"
33
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
44
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8" ?>
1+
<?xml version="1.0" encoding="utf-8" ?>
22
<ResourceDictionary x:Class="App.Resources.Styles.DefaultTheme"
33
xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
44
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" />

0 commit comments

Comments
 (0)