From af5089801d00eeab255f4670bd6f1360f2c65b88 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sat, 20 Jan 2024 16:57:15 +0100 Subject: [PATCH 1/8] Add .NET 8 TFM to all projects --- azure-pipelines.yml | 4 ++++ src/CommunityToolkit.Common/CommunityToolkit.Common.csproj | 2 +- .../CommunityToolkit.Diagnostics.csproj | 2 +- .../CommunityToolkit.HighPerformance.csproj | 2 +- src/CommunityToolkit.Mvvm/CommunityToolkit.Mvvm.csproj | 4 ++-- .../CommunityToolkit.Common.UnitTests.csproj | 2 +- .../CommunityToolkit.Diagnostics.UnitTests.csproj | 2 +- .../CommunityToolkit.HighPerformance.UnitTests.csproj | 2 +- ...olkit.Mvvm.DisableINotifyPropertyChanging.UnitTests.csproj | 2 +- .../CommunityToolkit.Mvvm.Internals.UnitTests.csproj | 2 +- .../CommunityToolkit.Mvvm.Roslyn401.UnitTests.csproj | 2 +- .../CommunityToolkit.Mvvm.Roslyn431.UnitTests.csproj | 2 +- ...tyToolkit.Mvvm.SourceGenerators.Roslyn401.UnitTests.csproj | 2 +- ...tyToolkit.Mvvm.SourceGenerators.Roslyn431.UnitTests.csproj | 2 +- 14 files changed, 18 insertions(+), 14 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 713592b83..81b40fd16 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -34,6 +34,10 @@ jobs: # Test solution # + # Run .NET 8 unit tests + - script: dotnet test --no-build -c $(Build.Configuration) -f net8.0 -l "trx;LogFileName=VSTestResults_net8.0.trx" + displayName: Run .NET 8 unit tests + # Run .NET 7 unit tests - script: dotnet test --no-build -c $(Build.Configuration) -f net7.0 -l "trx;LogFileName=VSTestResults_net7.0.trx" displayName: Run .NET 7 unit tests diff --git a/src/CommunityToolkit.Common/CommunityToolkit.Common.csproj b/src/CommunityToolkit.Common/CommunityToolkit.Common.csproj index f2d7cb70b..ddf81b30c 100644 --- a/src/CommunityToolkit.Common/CommunityToolkit.Common.csproj +++ b/src/CommunityToolkit.Common/CommunityToolkit.Common.csproj @@ -1,7 +1,7 @@ - netstandard2.0;netstandard2.1;net6.0 + netstandard2.0;netstandard2.1;net6.0;net8.0 diff --git a/src/CommunityToolkit.Diagnostics/CommunityToolkit.Diagnostics.csproj b/src/CommunityToolkit.Diagnostics/CommunityToolkit.Diagnostics.csproj index 6cd510f16..fec859625 100644 --- a/src/CommunityToolkit.Diagnostics/CommunityToolkit.Diagnostics.csproj +++ b/src/CommunityToolkit.Diagnostics/CommunityToolkit.Diagnostics.csproj @@ -1,7 +1,7 @@ - netstandard2.0;netstandard2.1;net6.0 + netstandard2.0;netstandard2.1;net6.0;net8.0 diff --git a/src/CommunityToolkit.HighPerformance/CommunityToolkit.HighPerformance.csproj b/src/CommunityToolkit.HighPerformance/CommunityToolkit.HighPerformance.csproj index bfc0e6bbe..2cf7770af 100644 --- a/src/CommunityToolkit.HighPerformance/CommunityToolkit.HighPerformance.csproj +++ b/src/CommunityToolkit.HighPerformance/CommunityToolkit.HighPerformance.csproj @@ -1,7 +1,7 @@ - netstandard2.0;netstandard2.1;net6.0;net7.0 + netstandard2.0;netstandard2.1;net6.0;net7.0;net8.0 diff --git a/src/CommunityToolkit.Mvvm/CommunityToolkit.Mvvm.csproj b/src/CommunityToolkit.Mvvm/CommunityToolkit.Mvvm.csproj index 272f56c7f..f1921fd93 100644 --- a/src/CommunityToolkit.Mvvm/CommunityToolkit.Mvvm.csproj +++ b/src/CommunityToolkit.Mvvm/CommunityToolkit.Mvvm.csproj @@ -1,7 +1,7 @@ - netstandard2.0;netstandard2.1;net6.0 + netstandard2.0;netstandard2.1;net6.0;net8.0 @@ -65,7 +65,7 @@ - + diff --git a/tests/CommunityToolkit.Common.UnitTests/CommunityToolkit.Common.UnitTests.csproj b/tests/CommunityToolkit.Common.UnitTests/CommunityToolkit.Common.UnitTests.csproj index 3f08c0b80..9a3cf3cc4 100644 --- a/tests/CommunityToolkit.Common.UnitTests/CommunityToolkit.Common.UnitTests.csproj +++ b/tests/CommunityToolkit.Common.UnitTests/CommunityToolkit.Common.UnitTests.csproj @@ -1,7 +1,7 @@ - net472;net6.0;net7.0 + net472;net6.0;net7.0;net8.0 diff --git a/tests/CommunityToolkit.Diagnostics.UnitTests/CommunityToolkit.Diagnostics.UnitTests.csproj b/tests/CommunityToolkit.Diagnostics.UnitTests/CommunityToolkit.Diagnostics.UnitTests.csproj index 37e5235f3..c2b5fd519 100644 --- a/tests/CommunityToolkit.Diagnostics.UnitTests/CommunityToolkit.Diagnostics.UnitTests.csproj +++ b/tests/CommunityToolkit.Diagnostics.UnitTests/CommunityToolkit.Diagnostics.UnitTests.csproj @@ -1,7 +1,7 @@ - net472;net6.0;net7.0 + net472;net6.0;net7.0;net8.0 diff --git a/tests/CommunityToolkit.HighPerformance.UnitTests/CommunityToolkit.HighPerformance.UnitTests.csproj b/tests/CommunityToolkit.HighPerformance.UnitTests/CommunityToolkit.HighPerformance.UnitTests.csproj index 1aefaa8f0..0de5158c4 100644 --- a/tests/CommunityToolkit.HighPerformance.UnitTests/CommunityToolkit.HighPerformance.UnitTests.csproj +++ b/tests/CommunityToolkit.HighPerformance.UnitTests/CommunityToolkit.HighPerformance.UnitTests.csproj @@ -1,7 +1,7 @@ - net472;net6.0;net7.0 + net472;net6.0;net7.0;net8.0 true $(NoWarn);CA2252 diff --git a/tests/CommunityToolkit.Mvvm.DisableINotifyPropertyChanging.UnitTests/CommunityToolkit.Mvvm.DisableINotifyPropertyChanging.UnitTests.csproj b/tests/CommunityToolkit.Mvvm.DisableINotifyPropertyChanging.UnitTests/CommunityToolkit.Mvvm.DisableINotifyPropertyChanging.UnitTests.csproj index 27b99da67..bc5de6ad9 100644 --- a/tests/CommunityToolkit.Mvvm.DisableINotifyPropertyChanging.UnitTests/CommunityToolkit.Mvvm.DisableINotifyPropertyChanging.UnitTests.csproj +++ b/tests/CommunityToolkit.Mvvm.DisableINotifyPropertyChanging.UnitTests/CommunityToolkit.Mvvm.DisableINotifyPropertyChanging.UnitTests.csproj @@ -1,7 +1,7 @@ - net472;net6.0;net7.0 + net472;net6.0;net7.0;net8.0 diff --git a/tests/CommunityToolkit.Mvvm.Internals.UnitTests/CommunityToolkit.Mvvm.Internals.UnitTests.csproj b/tests/CommunityToolkit.Mvvm.Internals.UnitTests/CommunityToolkit.Mvvm.Internals.UnitTests.csproj index 4e576b0c2..bcc68a1df 100644 --- a/tests/CommunityToolkit.Mvvm.Internals.UnitTests/CommunityToolkit.Mvvm.Internals.UnitTests.csproj +++ b/tests/CommunityToolkit.Mvvm.Internals.UnitTests/CommunityToolkit.Mvvm.Internals.UnitTests.csproj @@ -1,7 +1,7 @@ - net472;net6.0;net7.0 + net472;net6.0;net7.0;net8.0 diff --git a/tests/CommunityToolkit.Mvvm.Roslyn401.UnitTests/CommunityToolkit.Mvvm.Roslyn401.UnitTests.csproj b/tests/CommunityToolkit.Mvvm.Roslyn401.UnitTests/CommunityToolkit.Mvvm.Roslyn401.UnitTests.csproj index 237103970..af6d32401 100644 --- a/tests/CommunityToolkit.Mvvm.Roslyn401.UnitTests/CommunityToolkit.Mvvm.Roslyn401.UnitTests.csproj +++ b/tests/CommunityToolkit.Mvvm.Roslyn401.UnitTests/CommunityToolkit.Mvvm.Roslyn401.UnitTests.csproj @@ -1,7 +1,7 @@ - net472;net6.0;net7.0 + net472;net6.0;net7.0;net8.0 true diff --git a/tests/CommunityToolkit.Mvvm.Roslyn431.UnitTests/CommunityToolkit.Mvvm.Roslyn431.UnitTests.csproj b/tests/CommunityToolkit.Mvvm.Roslyn431.UnitTests/CommunityToolkit.Mvvm.Roslyn431.UnitTests.csproj index 4047cd225..4a1b7042a 100644 --- a/tests/CommunityToolkit.Mvvm.Roslyn431.UnitTests/CommunityToolkit.Mvvm.Roslyn431.UnitTests.csproj +++ b/tests/CommunityToolkit.Mvvm.Roslyn431.UnitTests/CommunityToolkit.Mvvm.Roslyn431.UnitTests.csproj @@ -1,7 +1,7 @@ - net472;net6.0;net7.0 + net472;net6.0;net7.0;net8.0 true diff --git a/tests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn401.UnitTests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn401.UnitTests.csproj b/tests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn401.UnitTests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn401.UnitTests.csproj index 7f3373c5e..3f2191544 100644 --- a/tests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn401.UnitTests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn401.UnitTests.csproj +++ b/tests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn401.UnitTests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn401.UnitTests.csproj @@ -1,7 +1,7 @@ - net472;net6.0;net7.0 + net472;net6.0;net7.0;net8.0 diff --git a/tests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn431.UnitTests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn431.UnitTests.csproj b/tests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn431.UnitTests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn431.UnitTests.csproj index 391078d31..60c10c68a 100644 --- a/tests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn431.UnitTests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn431.UnitTests.csproj +++ b/tests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn431.UnitTests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn431.UnitTests.csproj @@ -1,7 +1,7 @@ - net472;net6.0;net7.0 + net472;net6.0;net7.0;net8.0 $(DefineConstants);ROSLYN_4_3_1_OR_GREATER From 6a0e0e9d5fa1e3f5bd199fba0ab4344da63da859 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sat, 20 Jan 2024 17:02:45 +0100 Subject: [PATCH 2/8] Fix build for .NET 8, enable C# 12 --- build/Community.Toolkit.Common.props | 2 +- build/Community.Toolkit.Common.targets | 1 - src/Directory.Build.props | 2 +- src/Directory.Build.targets | 9 +++++++-- 4 files changed, 9 insertions(+), 5 deletions(-) diff --git a/build/Community.Toolkit.Common.props b/build/Community.Toolkit.Common.props index a43ae645d..4d0ec4379 100644 --- a/build/Community.Toolkit.Common.props +++ b/build/Community.Toolkit.Common.props @@ -20,7 +20,7 @@ true - 11.0 + 12.0 enable $(Product) Asset diff --git a/src/Directory.Build.props b/src/Directory.Build.props index 882db66f3..486e75379 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -3,7 +3,7 @@ - + all build; analyzers diff --git a/src/Directory.Build.targets b/src/Directory.Build.targets index b070ed1b8..23f65c476 100644 --- a/src/Directory.Build.targets +++ b/src/Directory.Build.targets @@ -3,18 +3,23 @@ - + NETSTANDARD2_1_OR_GREATER - + true true true true + + + true + + - + diff --git a/tests/CommunityToolkit.Common.UnitTests/CommunityToolkit.Common.UnitTests.csproj b/tests/CommunityToolkit.Common.UnitTests/CommunityToolkit.Common.UnitTests.csproj index 9a3cf3cc4..3e687c399 100644 --- a/tests/CommunityToolkit.Common.UnitTests/CommunityToolkit.Common.UnitTests.csproj +++ b/tests/CommunityToolkit.Common.UnitTests/CommunityToolkit.Common.UnitTests.csproj @@ -5,9 +5,9 @@ - - - + + + diff --git a/tests/CommunityToolkit.Diagnostics.UnitTests/CommunityToolkit.Diagnostics.UnitTests.csproj b/tests/CommunityToolkit.Diagnostics.UnitTests/CommunityToolkit.Diagnostics.UnitTests.csproj index c2b5fd519..35243d518 100644 --- a/tests/CommunityToolkit.Diagnostics.UnitTests/CommunityToolkit.Diagnostics.UnitTests.csproj +++ b/tests/CommunityToolkit.Diagnostics.UnitTests/CommunityToolkit.Diagnostics.UnitTests.csproj @@ -5,9 +5,9 @@ - - - + + + diff --git a/tests/CommunityToolkit.HighPerformance.UnitTests/CommunityToolkit.HighPerformance.UnitTests.csproj b/tests/CommunityToolkit.HighPerformance.UnitTests/CommunityToolkit.HighPerformance.UnitTests.csproj index 0de5158c4..a14f74068 100644 --- a/tests/CommunityToolkit.HighPerformance.UnitTests/CommunityToolkit.HighPerformance.UnitTests.csproj +++ b/tests/CommunityToolkit.HighPerformance.UnitTests/CommunityToolkit.HighPerformance.UnitTests.csproj @@ -11,9 +11,9 @@ - - - + + + \ No newline at end of file diff --git a/tests/CommunityToolkit.Mvvm.DisableINotifyPropertyChanging.UnitTests/CommunityToolkit.Mvvm.DisableINotifyPropertyChanging.UnitTests.csproj b/tests/CommunityToolkit.Mvvm.DisableINotifyPropertyChanging.UnitTests/CommunityToolkit.Mvvm.DisableINotifyPropertyChanging.UnitTests.csproj index bc5de6ad9..433a0741e 100644 --- a/tests/CommunityToolkit.Mvvm.DisableINotifyPropertyChanging.UnitTests/CommunityToolkit.Mvvm.DisableINotifyPropertyChanging.UnitTests.csproj +++ b/tests/CommunityToolkit.Mvvm.DisableINotifyPropertyChanging.UnitTests/CommunityToolkit.Mvvm.DisableINotifyPropertyChanging.UnitTests.csproj @@ -5,9 +5,9 @@ - - - + + + diff --git a/tests/CommunityToolkit.Mvvm.Internals.UnitTests/CommunityToolkit.Mvvm.Internals.UnitTests.csproj b/tests/CommunityToolkit.Mvvm.Internals.UnitTests/CommunityToolkit.Mvvm.Internals.UnitTests.csproj index bcc68a1df..34765766c 100644 --- a/tests/CommunityToolkit.Mvvm.Internals.UnitTests/CommunityToolkit.Mvvm.Internals.UnitTests.csproj +++ b/tests/CommunityToolkit.Mvvm.Internals.UnitTests/CommunityToolkit.Mvvm.Internals.UnitTests.csproj @@ -5,9 +5,9 @@ - - - + + + diff --git a/tests/CommunityToolkit.Mvvm.Roslyn401.UnitTests/CommunityToolkit.Mvvm.Roslyn401.UnitTests.csproj b/tests/CommunityToolkit.Mvvm.Roslyn401.UnitTests/CommunityToolkit.Mvvm.Roslyn401.UnitTests.csproj index af6d32401..7bf764d58 100644 --- a/tests/CommunityToolkit.Mvvm.Roslyn401.UnitTests/CommunityToolkit.Mvvm.Roslyn401.UnitTests.csproj +++ b/tests/CommunityToolkit.Mvvm.Roslyn401.UnitTests/CommunityToolkit.Mvvm.Roslyn401.UnitTests.csproj @@ -7,11 +7,11 @@ - - - - - + + + + + diff --git a/tests/CommunityToolkit.Mvvm.Roslyn431.UnitTests/CommunityToolkit.Mvvm.Roslyn431.UnitTests.csproj b/tests/CommunityToolkit.Mvvm.Roslyn431.UnitTests/CommunityToolkit.Mvvm.Roslyn431.UnitTests.csproj index 4a1b7042a..44eb2705f 100644 --- a/tests/CommunityToolkit.Mvvm.Roslyn431.UnitTests/CommunityToolkit.Mvvm.Roslyn431.UnitTests.csproj +++ b/tests/CommunityToolkit.Mvvm.Roslyn431.UnitTests/CommunityToolkit.Mvvm.Roslyn431.UnitTests.csproj @@ -7,11 +7,11 @@ - - - - - + + + + + diff --git a/tests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn401.UnitTests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn401.UnitTests.csproj b/tests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn401.UnitTests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn401.UnitTests.csproj index 99237d50c..963ee0c63 100644 --- a/tests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn401.UnitTests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn401.UnitTests.csproj +++ b/tests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn401.UnitTests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn401.UnitTests.csproj @@ -13,9 +13,9 @@ - - - + + + diff --git a/tests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn431.UnitTests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn431.UnitTests.csproj b/tests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn431.UnitTests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn431.UnitTests.csproj index 3da6c42ae..0c9526e65 100644 --- a/tests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn431.UnitTests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn431.UnitTests.csproj +++ b/tests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn431.UnitTests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn431.UnitTests.csproj @@ -12,9 +12,9 @@ - - - + + + From 32dbaed11c426da15f6012517872e9f0f5e0e3d9 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Wed, 7 Aug 2024 20:18:31 -0700 Subject: [PATCH 8/8] Fix source generator unit tests --- ..._AsyncVoidReturningRelayCommandMethodCodeFixer.cs | 4 ++-- ...assUsingAttributeInsteadOfInheritanceCodeFixer.cs | 12 ++++++------ ...ldReferenceForObservablePropertyFieldCodeFixer.cs | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn401.UnitTests/Test_AsyncVoidReturningRelayCommandMethodCodeFixer.cs b/tests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn401.UnitTests/Test_AsyncVoidReturningRelayCommandMethodCodeFixer.cs index e3c69458e..a74c975a1 100644 --- a/tests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn401.UnitTests/Test_AsyncVoidReturningRelayCommandMethodCodeFixer.cs +++ b/tests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn401.UnitTests/Test_AsyncVoidReturningRelayCommandMethodCodeFixer.cs @@ -53,7 +53,7 @@ private async Task Foo() { TestCode = original, FixedCode = @fixed, - ReferenceAssemblies = ReferenceAssemblies.Net.Net60 + ReferenceAssemblies = ReferenceAssemblies.Net.Net80 }; test.TestState.AdditionalReferences.Add(typeof(RelayCommand).Assembly); @@ -98,7 +98,7 @@ private async Task Foo() { TestCode = original, FixedCode = @fixed, - ReferenceAssemblies = ReferenceAssemblies.Net.Net60 + ReferenceAssemblies = ReferenceAssemblies.Net.Net80 }; test.TestState.AdditionalReferences.Add(typeof(RelayCommand).Assembly); diff --git a/tests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn401.UnitTests/Test_ClassUsingAttributeInsteadOfInheritanceCodeFixer.cs b/tests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn401.UnitTests/Test_ClassUsingAttributeInsteadOfInheritanceCodeFixer.cs index 17a4a2c09..d90d9a5bb 100644 --- a/tests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn401.UnitTests/Test_ClassUsingAttributeInsteadOfInheritanceCodeFixer.cs +++ b/tests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn401.UnitTests/Test_ClassUsingAttributeInsteadOfInheritanceCodeFixer.cs @@ -48,7 +48,7 @@ class C : ObservableObject { TestCode = original, FixedCode = @fixed, - ReferenceAssemblies = ReferenceAssemblies.Net.Net60 + ReferenceAssemblies = ReferenceAssemblies.Net.Net80 }; test.TestState.AdditionalReferences.Add(typeof(ObservableObject).Assembly); @@ -97,7 +97,7 @@ public void Dispose() { TestCode = original, FixedCode = @fixed, - ReferenceAssemblies = ReferenceAssemblies.Net.Net60 + ReferenceAssemblies = ReferenceAssemblies.Net.Net80 }; test.TestState.AdditionalReferences.Add(typeof(ObservableObject).Assembly); @@ -150,7 +150,7 @@ class TestAttribute : Attribute { TestCode = original, FixedCode = @fixed, - ReferenceAssemblies = ReferenceAssemblies.Net.Net60 + ReferenceAssemblies = ReferenceAssemblies.Net.Net80 }; test.TestState.AdditionalReferences.Add(typeof(ObservableObject).Assembly); @@ -203,7 +203,7 @@ class TestAttribute : Attribute { TestCode = original, FixedCode = @fixed, - ReferenceAssemblies = ReferenceAssemblies.Net.Net60 + ReferenceAssemblies = ReferenceAssemblies.Net.Net80 }; test.TestState.AdditionalReferences.Add(typeof(ObservableObject).Assembly); @@ -260,7 +260,7 @@ class TestAttribute : Attribute { TestCode = original, FixedCode = @fixed, - ReferenceAssemblies = ReferenceAssemblies.Net.Net60 + ReferenceAssemblies = ReferenceAssemblies.Net.Net80 }; test.TestState.AdditionalReferences.Add(typeof(ObservableObject).Assembly); @@ -312,7 +312,7 @@ class TestAttribute : Attribute { TestCode = original, FixedCode = @fixed, - ReferenceAssemblies = ReferenceAssemblies.Net.Net60 + ReferenceAssemblies = ReferenceAssemblies.Net.Net80 }; test.TestState.AdditionalReferences.Add(typeof(ObservableObject).Assembly); diff --git a/tests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn401.UnitTests/Test_FieldReferenceForObservablePropertyFieldCodeFixer.cs b/tests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn401.UnitTests/Test_FieldReferenceForObservablePropertyFieldCodeFixer.cs index dec18e08a..1ee684019 100644 --- a/tests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn401.UnitTests/Test_FieldReferenceForObservablePropertyFieldCodeFixer.cs +++ b/tests/CommunityToolkit.Mvvm.SourceGenerators.Roslyn401.UnitTests/Test_FieldReferenceForObservablePropertyFieldCodeFixer.cs @@ -59,7 +59,7 @@ void M() { TestCode = original, FixedCode = @fixed, - ReferenceAssemblies = ReferenceAssemblies.Net.Net60 + ReferenceAssemblies = ReferenceAssemblies.Net.Net80 }; test.TestState.AdditionalReferences.Add(typeof(ObservableObject).Assembly); @@ -123,7 +123,7 @@ void M() { TestCode = original, FixedCode = @fixed, - ReferenceAssemblies = ReferenceAssemblies.Net.Net60 + ReferenceAssemblies = ReferenceAssemblies.Net.Net80 }; test.TestState.AdditionalReferences.Add(typeof(ObservableObject).Assembly); @@ -195,7 +195,7 @@ void M() { TestCode = original, FixedCode = @fixed, - ReferenceAssemblies = ReferenceAssemblies.Net.Net60 + ReferenceAssemblies = ReferenceAssemblies.Net.Net80 }; test.TestState.AdditionalReferences.Add(typeof(ObservableObject).Assembly); @@ -265,7 +265,7 @@ void M() { TestCode = original, FixedCode = @fixed, - ReferenceAssemblies = ReferenceAssemblies.Net.Net60 + ReferenceAssemblies = ReferenceAssemblies.Net.Net80 }; test.TestState.AdditionalReferences.Add(typeof(ObservableObject).Assembly);