diff --git a/README-BEFORE-UPDATE-REFS.txt b/README-BEFORE-UPDATE-REFS.txt new file mode 100644 index 00000000..7e70948c --- /dev/null +++ b/README-BEFORE-UPDATE-REFS.txt @@ -0,0 +1,6 @@ +Notes on updating the project references: + +IMPORTANT VERSION CONSTRAINTS: +- System.Threading.Tasks.Extensions must not be updated beyond version 4.5.4 + Reason: The VS2019 extension will fail due to a transitive dependency conflict between + Compilers.Services.Unsafe and System.Collections.Immutable. diff --git a/USB Test App WPF/App.xaml b/USB Test App WPF/App.xaml index 9c9d0fa6..2b5a5628 100644 --- a/USB Test App WPF/App.xaml +++ b/USB Test App WPF/App.xaml @@ -1,7 +1,7 @@ - - - - - - - \ No newline at end of file + + + + + + + diff --git a/USB Test App WPF/App.xaml.cs b/USB Test App WPF/App.xaml.cs index 5a9b0818..9d965321 100644 --- a/USB Test App WPF/App.xaml.cs +++ b/USB Test App WPF/App.xaml.cs @@ -2,6 +2,10 @@ // Copyright (c) .NET Foundation and Contributors // See LICENSE file in the project root for full license information. // +// +// Copyright (c) .NET Foundation and Contributors +// See LICENSE file in the project root for full license information. +// using CommonServiceLocator; using nanoFramework.ANT.Services.NanoFrameworkService; @@ -9,6 +13,7 @@ using Serial_Test_App_WPF.ViewModel; using System; using System.Collections.Generic; +using CommunityToolkit.Mvvm.DependencyInjection; namespace Serial_Test_App_WPF { @@ -27,12 +32,12 @@ public App() vml = new ViewModelLocator(); var serialClient = CreateSerialDebugClient(); - ServiceLocator.Current.GetInstance().SerialDebugService = serialClient; + Ioc.Default.GetService().SerialDebugService = serialClient; } private void App_Exit(object sender, System.Windows.ExitEventArgs e) { - var serialClient = ServiceLocator.Current.GetInstance().SerialDebugService; + var serialClient = Ioc.Default.GetService().SerialDebugService; serialClient.SerialDebugClient.StopDeviceWatchers(); } diff --git a/USB Test App WPF/FodyWeavers.xml b/USB Test App WPF/FodyWeavers.xml deleted file mode 100644 index 4e68ed1a..00000000 --- a/USB Test App WPF/FodyWeavers.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/USB Test App WPF/FodyWeavers.xsd b/USB Test App WPF/FodyWeavers.xsd deleted file mode 100644 index 2f1b8aae..00000000 --- a/USB Test App WPF/FodyWeavers.xsd +++ /dev/null @@ -1,54 +0,0 @@ - - - - - - - - - - - Used to control if the On_PropertyName_Changed feature is enabled. - - - - - Used to change the name of the method that fires the notify event. This is a string that accepts multiple values in a comma separated form. - - - - - Used to control if equality checks should be inserted. If false, equality checking will be disabled for the project. - - - - - Used to control if equality checks should use the Equals method resolved from the base class. - - - - - Used to control if equality checks should use the static Equals method resolved from the base class. - - - - - - - - 'true' to run assembly verification (PEVerify) on the target assembly after all weavers have been executed. - - - - - A comma-separated list of error codes that can be safely ignored in assembly verification. - - - - - 'false' to turn off automatic generation of the XML Schema file. - - - - - \ No newline at end of file diff --git a/USB Test App WPF/MainWindow.xaml b/USB Test App WPF/MainWindow.xaml index 05fb1fff..1501596e 100644 --- a/USB Test App WPF/MainWindow.xaml +++ b/USB Test App WPF/MainWindow.xaml @@ -4,7 +4,8 @@ xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:local="clr-namespace:Serial_Test_App_WPF" - xmlns:ViewModel="clr-namespace:Serial_Test_App_WPF.ViewModel" x:Class="Serial_Test_App_WPF.MainWindow" + xmlns:ViewModel="clr-namespace:Serial_Test_App_WPF.ViewModel" + x:Class="Serial_Test_App_WPF.MainWindow" mc:Ignorable="d" Title="MainWindow" Height="374" Width="570.729"> @@ -54,7 +55,5 @@