diff --git a/examples/Directory.Build.props b/examples/Directory.Build.props index dc134dff..5d6e0df1 100644 --- a/examples/Directory.Build.props +++ b/examples/Directory.Build.props @@ -26,7 +26,7 @@ true - 3.0.3 + * 8.0.0 diff --git a/examples/Layouts/SampleLayoutsApp/Layout/ForwardingLayout.cs b/examples/Layouts/SampleLayoutsApp/Layout/ForwardingLayout.cs index 8b2af5f0..3e148582 100644 --- a/examples/Layouts/SampleLayoutsApp/Layout/ForwardingLayout.cs +++ b/examples/Layouts/SampleLayoutsApp/Layout/ForwardingLayout.cs @@ -84,7 +84,7 @@ public virtual void ActivateOptions() /// the as text. /// /// - virtual public void Format(TextWriter writer, LoggingEvent loggingEvent) + public virtual void Format(TextWriter writer, LoggingEvent loggingEvent) => Layout?.Format(writer, loggingEvent); /// diff --git a/examples/Maui/.editorconfig b/examples/Maui/.editorconfig new file mode 100644 index 00000000..cb0cd9fd --- /dev/null +++ b/examples/Maui/.editorconfig @@ -0,0 +1,5 @@ +[*.cs] +# Naming styles +dotnet_style_namespace_match_folder = false:suggestion +# IDE1006: Naming Styles +dotnet_diagnostic.IDE1006.severity = none diff --git a/examples/Maui/App.xaml b/examples/Maui/App.xaml new file mode 100644 index 00000000..a4653dae --- /dev/null +++ b/examples/Maui/App.xaml @@ -0,0 +1,14 @@ + + + + + + + + + + + diff --git a/examples/Maui/App.xaml.cs b/examples/Maui/App.xaml.cs new file mode 100644 index 00000000..9b1b0a9c --- /dev/null +++ b/examples/Maui/App.xaml.cs @@ -0,0 +1,16 @@ +using System.Diagnostics.CodeAnalysis; + +namespace MauiTestApplication; + +/// +[SuppressMessage("Naming", "CA1724:Type names should not match namespaces")] +[SuppressMessage("Microsoft.Maintainability", "CA1501:AvoidExcessiveInheritance")] +public partial class App : Application +{ + /// + public App() => InitializeComponent(); + + /// + protected override Window CreateWindow(IActivationState? activationState) + => new(new AppShell()); +} \ No newline at end of file diff --git a/examples/Maui/AppShell.xaml b/examples/Maui/AppShell.xaml new file mode 100644 index 00000000..b975dc64 --- /dev/null +++ b/examples/Maui/AppShell.xaml @@ -0,0 +1,13 @@ + + + + \ No newline at end of file diff --git a/examples/Maui/AppShell.xaml.cs b/examples/Maui/AppShell.xaml.cs new file mode 100644 index 00000000..2693a750 --- /dev/null +++ b/examples/Maui/AppShell.xaml.cs @@ -0,0 +1,11 @@ +using System.Diagnostics.CodeAnalysis; + +namespace MauiTestApplication; + +/// +[SuppressMessage("Microsoft.Maintainability", "CA1501:AvoidExcessiveInheritance")] +public partial class AppShell : Shell +{ + /// + public AppShell() => InitializeComponent(); +} \ No newline at end of file diff --git a/examples/Maui/MainPage.xaml b/examples/Maui/MainPage.xaml new file mode 100644 index 00000000..0b846f5c --- /dev/null +++ b/examples/Maui/MainPage.xaml @@ -0,0 +1,36 @@ + + + + + + + +