From 7cd52115bcd9719f619b49b2c77fef85b17f5fad Mon Sep 17 00:00:00 2001 From: Eric StJohn Date: Tue, 30 Jul 2024 11:39:48 -0700 Subject: [PATCH] Ensure WPF builds against framework SRSF version WPF was depending on the package version of System.Runtime.Serialization.Formatters but never shipping it. Instead WPF should depend on the built-in assembly version. To do that we need to update the SDK version since WPF's vcxprojs don't enable the nuget package targeting pack https://github.com/dotnet/wpf/issues/9490 --- eng/WpfArcadeSdk/tools/TestProjects.targets | 1 - global.json | 4 ++-- .../src/PresentationCore/PresentationCore.csproj | 3 +-- .../src/PresentationCore/ref/PresentationCore-ref.csproj | 3 +-- .../src/PresentationFramework/PresentationFramework.csproj | 3 +-- .../ref/PresentationFramework-ref.csproj | 3 +-- src/Microsoft.DotNet.Wpf/src/System.Xaml/System.Xaml.csproj | 3 +-- .../src/System.Xaml/ref/System.Xaml-ref.csproj | 3 +-- .../PresentationCore.Tests/PresentationCore.Tests.csproj | 1 + 9 files changed, 9 insertions(+), 15 deletions(-) diff --git a/eng/WpfArcadeSdk/tools/TestProjects.targets b/eng/WpfArcadeSdk/tools/TestProjects.targets index 2c8fd22bf80..8fdc440ae42 100644 --- a/eng/WpfArcadeSdk/tools/TestProjects.targets +++ b/eng/WpfArcadeSdk/tools/TestProjects.targets @@ -29,7 +29,6 @@ - diff --git a/global.json b/global.json index 4e11d5d3ff1..dab47f6fdaf 100644 --- a/global.json +++ b/global.json @@ -1,6 +1,6 @@ { "tools": { - "dotnet": "9.0.100-preview.5.24307.3", + "dotnet": "9.0.100-preview.6.24328.19", "runtimes": { "dotnet": [ "2.1.7", @@ -16,7 +16,7 @@ "Microsoft.DotNet.Helix.Sdk": "9.0.0-beta.24375.3" }, "sdk": { - "version": "9.0.100-preview.5.24307.3" + "version": "9.0.100-preview.6.24328.19" }, "native-tools": { "strawberry-perl": "5.38.0.1", diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/PresentationCore.csproj b/src/Microsoft.DotNet.Wpf/src/PresentationCore/PresentationCore.csproj index 1dcab38bf60..036da859299 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/PresentationCore.csproj +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/PresentationCore.csproj @@ -1452,6 +1452,7 @@ + @@ -1467,8 +1468,6 @@ - - diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationCore/ref/PresentationCore-ref.csproj b/src/Microsoft.DotNet.Wpf/src/PresentationCore/ref/PresentationCore-ref.csproj index 80380ec2120..75d9e1c713d 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationCore/ref/PresentationCore-ref.csproj +++ b/src/Microsoft.DotNet.Wpf/src/PresentationCore/ref/PresentationCore-ref.csproj @@ -50,6 +50,7 @@ + @@ -62,8 +63,6 @@ - - diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/PresentationFramework.csproj b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/PresentationFramework.csproj index e5e20434592..6e84493822b 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/PresentationFramework.csproj +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/PresentationFramework.csproj @@ -1406,6 +1406,7 @@ + @@ -1450,8 +1451,6 @@ - - diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/ref/PresentationFramework-ref.csproj b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/ref/PresentationFramework-ref.csproj index def41db3429..b7ea8c46323 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/ref/PresentationFramework-ref.csproj +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/ref/PresentationFramework-ref.csproj @@ -58,6 +58,7 @@ + @@ -89,8 +90,6 @@ - - diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System.Xaml.csproj b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System.Xaml.csproj index 73ce444dbb0..12c475845a1 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/System.Xaml.csproj +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/System.Xaml.csproj @@ -111,6 +111,7 @@ + @@ -121,8 +122,6 @@ - - diff --git a/src/Microsoft.DotNet.Wpf/src/System.Xaml/ref/System.Xaml-ref.csproj b/src/Microsoft.DotNet.Wpf/src/System.Xaml/ref/System.Xaml-ref.csproj index c125f185415..7498f329404 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Xaml/ref/System.Xaml-ref.csproj +++ b/src/Microsoft.DotNet.Wpf/src/System.Xaml/ref/System.Xaml-ref.csproj @@ -38,6 +38,7 @@ + @@ -48,8 +49,6 @@ - - diff --git a/src/Microsoft.DotNet.Wpf/tests/UnitTests/PresentationCore.Tests/PresentationCore.Tests.csproj b/src/Microsoft.DotNet.Wpf/tests/UnitTests/PresentationCore.Tests/PresentationCore.Tests.csproj index edc1f9cffa0..06631a73c3a 100644 --- a/src/Microsoft.DotNet.Wpf/tests/UnitTests/PresentationCore.Tests/PresentationCore.Tests.csproj +++ b/src/Microsoft.DotNet.Wpf/tests/UnitTests/PresentationCore.Tests/PresentationCore.Tests.csproj @@ -24,6 +24,7 @@ +