From c6e3af55ec26421e024ff68ea461b9826eefedd8 Mon Sep 17 00:00:00 2001 From: Yaroslav Bugaria Date: Tue, 12 Sep 2023 11:40:37 -0700 Subject: [PATCH] Migrate from .NET 5.0 to 6.0 + bump nugets --- README.md | 4 +-- src/MvvmMicro.Tests/MvvmMicro.Tests.csproj | 10 +++--- src/MvvmMicro/CommandBase.cs | 4 +-- src/MvvmMicro/MvvmMicro.csproj | 42 +++++++++++----------- 4 files changed, 30 insertions(+), 30 deletions(-) diff --git a/README.md b/README.md index 62d4712..16af806 100644 --- a/README.md +++ b/README.md @@ -11,9 +11,9 @@ A lightweight MVVM framework for .NET inspired by [MVVM Light Toolkit](https://g ## Supported platforms -- .NET Framework 4.6.2 & .NET 5.0 (WPF) -- Universal Windows Platform (UWP) +- .NET Framework 4.6.2 & .NET 6.0 (WPF) - .NET Standard 2.0 (Xamarin.Forms, Avalonia, MAUI, etc.) +- Universal Windows Platform (UWP) ## Installation diff --git a/src/MvvmMicro.Tests/MvvmMicro.Tests.csproj b/src/MvvmMicro.Tests/MvvmMicro.Tests.csproj index 03c1c15..39e9d7c 100644 --- a/src/MvvmMicro.Tests/MvvmMicro.Tests.csproj +++ b/src/MvvmMicro.Tests/MvvmMicro.Tests.csproj @@ -6,24 +6,24 @@ MvvmMicro.Test MvvmMicro.Test 10.0 - warnings + warnings true - + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/src/MvvmMicro/CommandBase.cs b/src/MvvmMicro/CommandBase.cs index 72c4408..f0a9bd1 100644 --- a/src/MvvmMicro/CommandBase.cs +++ b/src/MvvmMicro/CommandBase.cs @@ -10,7 +10,7 @@ namespace MvvmMicro; /// public abstract class CommandBase : ObservableObject, ICommand { -#if NETFRAMEWORK || NET5_0_OR_GREATER +#if NETFRAMEWORK || NET6_0_OR_GREATER /// public event EventHandler CanExecuteChanged { @@ -33,7 +33,7 @@ public event EventHandler CanExecuteChanged /// public void RaiseCanExecuteChanged() { -#if NETFRAMEWORK || NET5_0_OR_GREATER +#if NETFRAMEWORK || NET6_0_OR_GREATER CommandManager.InvalidateRequerySuggested(); #else CanExecuteChanged?.Invoke(this, EventArgs.Empty); diff --git a/src/MvvmMicro/MvvmMicro.csproj b/src/MvvmMicro/MvvmMicro.csproj index 667b4c0..2748036 100644 --- a/src/MvvmMicro/MvvmMicro.csproj +++ b/src/MvvmMicro/MvvmMicro.csproj @@ -1,35 +1,35 @@  - netstandard2.0;net462;net5.0-windows;uap10.0.19041 + netstandard2.0;net462;net6.0-windows;uap10.0.19041 MvvmMicro MvvmMicro - Yaroslav Bugaria - MvvmMicro - A clean and lightweight MVVM framework for WPF, UWP and .NET Standard inspired by MVVM Light Toolkit. - (c) Yaroslav Bugaria, $([System.DateTime]::Now.ToString(yyyy)) - true - en-US - MvvmMicro.snk - true - 10.0 + Yaroslav Bugaria + MvvmMicro + A clean and lightweight MVVM framework for WPF, UWP and .NET Standard inspired by MVVM Light Toolkit. + (c) Yaroslav Bugaria, $([System.DateTime]::Now.ToString(yyyy)) + true + en-US + MvvmMicro.snk + true + 10.0 warnings - true - MvvmMicro - icon.png - false - https://github.com/yariker/MvvmMicro - https://github.com/yariker/MvvmMicro.git - git - mvvm wpf uwp xamarin-forms - $(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb + true + MvvmMicro + icon.png + false + https://github.com/yariker/MvvmMicro + https://github.com/yariker/MvvmMicro.git + git + mvvm wpf uwp xamarin-forms + $(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb - + true @@ -48,5 +48,5 @@ - +