diff --git a/Avalonia.Templates.csproj b/Avalonia.Templates.csproj index e9911d39..6933c111 100644 --- a/Avalonia.Templates.csproj +++ b/Avalonia.Templates.csproj @@ -2,7 +2,7 @@ Template - 0.10.11.1 + 0.10.12 Avalonia.Templates Avalonia Templates Templates for creating Avalonia applications and libraries. diff --git a/templates/csharp/app-mvvm/App.axaml.cs b/templates/csharp/app-mvvm/App.axaml.cs index 44839901..f4c16459 100644 --- a/templates/csharp/app-mvvm/App.axaml.cs +++ b/templates/csharp/app-mvvm/App.axaml.cs @@ -6,7 +6,7 @@ namespace AvaloniaAppTemplate { - public class App : Application + public partial class App : Application { public override void Initialize() { diff --git a/templates/csharp/app-mvvm/AvaloniaAppTemplate.csproj b/templates/csharp/app-mvvm/AvaloniaAppTemplate.csproj index ec2ec353..1671bcca 100644 --- a/templates/csharp/app-mvvm/AvaloniaAppTemplate.csproj +++ b/templates/csharp/app-mvvm/AvaloniaAppTemplate.csproj @@ -1,8 +1,11 @@  WinExe - net5.0 + net6.0 enable + + copyused + true @@ -10,10 +13,18 @@ - - + + + + + + + - - + + + diff --git a/templates/csharp/app/App.axaml.cs b/templates/csharp/app/App.axaml.cs index 6c4821b4..93dc1b16 100644 --- a/templates/csharp/app/App.axaml.cs +++ b/templates/csharp/app/App.axaml.cs @@ -4,7 +4,7 @@ namespace AvaloniaAppTemplate { - public class App : Application + public partial class App : Application { public override void Initialize() { diff --git a/templates/csharp/app/AvaloniaAppTemplate.csproj b/templates/csharp/app/AvaloniaAppTemplate.csproj index 0cb4dc0d..0ed3c5ef 100644 --- a/templates/csharp/app/AvaloniaAppTemplate.csproj +++ b/templates/csharp/app/AvaloniaAppTemplate.csproj @@ -1,16 +1,27 @@  WinExe - net5.0 + net6.0 enable + + copyused + true - - + + + + + + + - + + diff --git a/templates/csharp/xplat/AvaloniaTest.NetCore/AvaloniaTest.NetCore.csproj b/templates/csharp/xplat/AvaloniaTest.NetCore/AvaloniaTest.NetCore.csproj index e5ff562c..a68cfbc1 100644 --- a/templates/csharp/xplat/AvaloniaTest.NetCore/AvaloniaTest.NetCore.csproj +++ b/templates/csharp/xplat/AvaloniaTest.NetCore/AvaloniaTest.NetCore.csproj @@ -4,8 +4,18 @@ net6.0 enable AvaloniaTest.NetCore - 0.10.11 + 0.10.12 + + copyused + true + + + + + diff --git a/templates/csharp/xplat/AvaloniaTest.Web/AvaloniaTest.Web.csproj b/templates/csharp/xplat/AvaloniaTest.Web/AvaloniaTest.Web.csproj index 0ad6449b..c3afe2ea 100644 --- a/templates/csharp/xplat/AvaloniaTest.Web/AvaloniaTest.Web.csproj +++ b/templates/csharp/xplat/AvaloniaTest.Web/AvaloniaTest.Web.csproj @@ -16,7 +16,7 @@ true true - -O3 + -O3 -O3 true diff --git a/templates/csharp/xplat/AvaloniaTest/App.axaml.cs b/templates/csharp/xplat/AvaloniaTest/App.axaml.cs index ecc477ef..c60186c0 100644 --- a/templates/csharp/xplat/AvaloniaTest/App.axaml.cs +++ b/templates/csharp/xplat/AvaloniaTest/App.axaml.cs @@ -6,7 +6,7 @@ namespace AvaloniaTest { - public class App : Application + public partial class App : Application { public override void Initialize() { diff --git a/templates/csharp/xplat/AvaloniaTest/AvaloniaTest.csproj b/templates/csharp/xplat/AvaloniaTest/AvaloniaTest.csproj index c67618a3..4f03d491 100644 --- a/templates/csharp/xplat/AvaloniaTest/AvaloniaTest.csproj +++ b/templates/csharp/xplat/AvaloniaTest/AvaloniaTest.csproj @@ -3,7 +3,7 @@ netstandard2.0 enable latest - 0.10.11 + 0.10.12 @@ -13,5 +13,6 @@ + diff --git a/templates/csharp/xplat/AvaloniaTest/Views/MainView.axaml.cs b/templates/csharp/xplat/AvaloniaTest/Views/MainView.axaml.cs index 0daaa27f..2e562138 100644 --- a/templates/csharp/xplat/AvaloniaTest/Views/MainView.axaml.cs +++ b/templates/csharp/xplat/AvaloniaTest/Views/MainView.axaml.cs @@ -2,17 +2,18 @@ using Avalonia.Controls; using Avalonia.Markup.Xaml; -namespace AvaloniaTest.Views; - -public class MainView : UserControl +namespace AvaloniaTest.Views { - public MainView() + public partial class MainView : UserControl { - InitializeComponent(); - } + public MainView() + { + InitializeComponent(); + } - private void InitializeComponent() - { - AvaloniaXamlLoader.Load(this); + private void InitializeComponent() + { + AvaloniaXamlLoader.Load(this); + } } } \ No newline at end of file diff --git a/templates/fsharp/app-mvvm/AvaloniaAppTemplate.fsproj b/templates/fsharp/app-mvvm/AvaloniaAppTemplate.fsproj index fbe8ed3d..ddf3cadb 100644 --- a/templates/fsharp/app-mvvm/AvaloniaAppTemplate.fsproj +++ b/templates/fsharp/app-mvvm/AvaloniaAppTemplate.fsproj @@ -1,7 +1,10 @@  WinExe - net5.0 + net6.0 + + copyused + true @@ -17,10 +20,17 @@ - - + + + + + + + - - + + diff --git a/templates/fsharp/app/AvaloniaAppTemplate.fsproj b/templates/fsharp/app/AvaloniaAppTemplate.fsproj index 57846f48..a8ff5640 100644 --- a/templates/fsharp/app/AvaloniaAppTemplate.fsproj +++ b/templates/fsharp/app/AvaloniaAppTemplate.fsproj @@ -1,7 +1,10 @@  WinExe - net5.0 + net6.0 + + copyused + true @@ -12,9 +15,16 @@ - - + + + + + + + - +