diff --git a/directory.build.props b/directory.build.props index 3a44731..1d6e493 100644 --- a/directory.build.props +++ b/directory.build.props @@ -5,13 +5,13 @@ - 8.0.70 + 9.0.10 - net8.0 - net8.0-ios - net8.0-android - net8.0-maccatalyst - net8.0-windows10.0.19041.0 + net9.0 + net9.0-ios + net9.0-android + net9.0-maccatalyst + net9.0-windows10.0.19041.0 $(StandardTargetFramework);$(AndroidTargetFramework);$(IosTargetFramework);$(MacTargetFramework); $(StandardTargetFramework);$(AndroidTargetFramework);$(IosTargetFramework);$(MacTargetFramework);$(WindowsTargetFramework); diff --git a/global.json b/global.json index b3e73d2..b5989fa 100644 --- a/global.json +++ b/global.json @@ -1,5 +1,5 @@ { "sdk": { - "version": "8.0.204" + "version": "9.0.100" } } diff --git a/samples/Mocale.GeneratorSample/Mocale.GeneratorSample.csproj b/samples/Mocale.GeneratorSample/Mocale.GeneratorSample.csproj index 7e42e39..514683e 100644 --- a/samples/Mocale.GeneratorSample/Mocale.GeneratorSample.csproj +++ b/samples/Mocale.GeneratorSample/Mocale.GeneratorSample.csproj @@ -6,6 +6,7 @@ enable enable true + $(NoWarn);IDE0005 diff --git a/samples/Mocale.Samples.sln b/samples/Mocale.Samples.sln index 51715de..3effd72 100644 --- a/samples/Mocale.Samples.sln +++ b/samples/Mocale.Samples.sln @@ -19,6 +19,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution ..\.editorconfig = ..\.editorconfig ..\directory.build.props = ..\directory.build.props ..\global.json = ..\global.json + ..\version.json = ..\version.json EndProjectSection EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Mocale.Providers.Azure.Blob", "..\src\Mocale.Providers.Azure.Blob\Mocale.Providers.Azure.Blob.csproj", "{1BF264ED-14A2-4847-9578-9312BF9ECFA9}" diff --git a/samples/Mocale.Samples/App.xaml.cs b/samples/Mocale.Samples/App.xaml.cs index c47e84d..98e6bcd 100644 --- a/samples/Mocale.Samples/App.xaml.cs +++ b/samples/Mocale.Samples/App.xaml.cs @@ -5,7 +5,10 @@ public partial class App : Application public App() { InitializeComponent(); + } - MainPage = new AppShell(); + protected override Window CreateWindow(IActivationState activationState) + { + return new Window(new AppShell()); } } diff --git a/samples/Mocale.Samples/Mocale.Samples.csproj b/samples/Mocale.Samples/Mocale.Samples.csproj index 3f8f795..0409c56 100644 --- a/samples/Mocale.Samples/Mocale.Samples.csproj +++ b/samples/Mocale.Samples/Mocale.Samples.csproj @@ -7,8 +7,9 @@ Mocale.Samples true true - + $(NoWarn);IDE0005 true + true Mocale.Samples @@ -21,8 +22,8 @@ 1.0 1 - 11.0 - 13.1 + 12.2 + 15.0 21.0 10.0.17763.0 10.0.17763.0 @@ -62,8 +63,8 @@ - - + + diff --git a/samples/Mocale.Samples/ObjectModel/ObservableRangeCollection.cs b/samples/Mocale.Samples/ObjectModel/ObservableRangeCollection.cs index dd5059b..5b06608 100644 --- a/samples/Mocale.Samples/ObjectModel/ObservableRangeCollection.cs +++ b/samples/Mocale.Samples/ObjectModel/ObservableRangeCollection.cs @@ -2,35 +2,38 @@ using System.Collections.Specialized; using System.ComponentModel; +//Resharper disable all +#pragma warning disable + namespace Mocale.Samples.ObjectModel; -/// -/// Represents a dynamic data collection that provides notifications when items get added, removed, or when the whole list is refreshed. -/// -/// +/// +/// Represents a dynamic data collection that provides notifications when items get added, removed, or when the whole list is refreshed. +/// +/// public class ObservableRangeCollection : ObservableCollection { - /// - /// Initializes a new instance of the System.Collections.ObjectModel.ObservableCollection(Of T) class. - /// + /// + /// Initializes a new instance of the System.Collections.ObjectModel.ObservableCollection(Of T) class. + /// public ObservableRangeCollection() : base() { } - /// - /// Initializes a new instance of the System.Collections.ObjectModel.ObservableCollection(Of T) class that contains elements copied from the specified collection. - /// - /// collection: The collection from which the elements are copied. - /// The collection parameter cannot be null. + /// + /// Initializes a new instance of the System.Collections.ObjectModel.ObservableCollection(Of T) class that contains elements copied from the specified collection. + /// + /// collection: The collection from which the elements are copied. + /// The collection parameter cannot be null. public ObservableRangeCollection(IEnumerable collection) : base(collection) { } - /// - /// Adds the elements of the specified collection to the end of the ObservableCollection(Of T). - /// + /// + /// Adds the elements of the specified collection to the end of the ObservableCollection(Of T). + /// public void AddRange(IEnumerable collection, NotifyCollectionChangedAction notificationMode = NotifyCollectionChangedAction.Add) { if (notificationMode != NotifyCollectionChangedAction.Add && notificationMode != NotifyCollectionChangedAction.Reset) @@ -62,9 +65,9 @@ public void AddRange(IEnumerable collection, NotifyCollectionChangedAction no startingIndex: startIndex); } - /// + /// /// Removes the first occurence of each item in the specified collection from ObservableCollection(Of T). NOTE: with notificationMode = Remove, removed items starting index is not set because items are not guaranteed to be consecutive. - /// + /// public void RemoveRange(IEnumerable collection, NotifyCollectionChangedAction notificationMode = NotifyCollectionChangedAction.Reset) { if (notificationMode != NotifyCollectionChangedAction.Remove && notificationMode != NotifyCollectionChangedAction.Reset) @@ -107,14 +110,14 @@ public void RemoveRange(IEnumerable collection, NotifyCollectionChangedAction changedItems: changedItems); } - /// - /// Clears the current collection and replaces it with the specified item. - /// + /// + /// Clears the current collection and replaces it with the specified item. + /// public void Replace(T item) => ReplaceRange(new T[] { item }); - /// - /// Clears the current collection and replaces it with the specified collection. - /// + /// + /// Clears the current collection and replaces it with the specified collection. + /// public void ReplaceRange(IEnumerable collection) { if (collection == null) diff --git a/samples/Mocale.Samples/Pages/BindingPage.xaml b/samples/Mocale.Samples/Pages/BindingPage.xaml index b411370..b8465f8 100644 --- a/samples/Mocale.Samples/Pages/BindingPage.xaml +++ b/samples/Mocale.Samples/Pages/BindingPage.xaml @@ -1,12 +1,12 @@ + xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"> @@ -27,7 +27,7 @@