From e5d2c0e9ac74bc231d8fbe37b1008e492223cfb8 Mon Sep 17 00:00:00 2001 From: Vinay Narayana Date: Mon, 13 Apr 2026 14:12:13 +0530 Subject: [PATCH 1/4] Remove /clr:pure from WPF C++/CLI projects Migrate DirectWriteForwarder and System.Printing from /clr:pure to /clr:netcore (IJW mixed mode) in preparation for MSVC 14.51 which removes /clr:pure + /clr:netcore support. Changes: - CLRSupport and CompileAsManaged changed from pure to NetCore - Removed pure to NetCore conversion logic in Wpf.Cpp.props - Removed ijwhost.dll packaging exclusion (required for mixed-mode) - Added _M_ARM64 to architecture check in intsafe_private_copy.h Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- eng/WpfArcadeSdk/tools/Wpf.Cpp.props | 6 +++--- .../TrueTypeSubsetter/TtfDelta/intsafe_private_copy.h | 2 +- .../DirectWriteForwarder/DirectWriteForwarder.vcxproj | 11 +++-------- .../src/System.Printing/System.Printing.vcxproj | 11 +++-------- 4 files changed, 10 insertions(+), 20 deletions(-) diff --git a/eng/WpfArcadeSdk/tools/Wpf.Cpp.props b/eng/WpfArcadeSdk/tools/Wpf.Cpp.props index 6076423b7a6..f44a8b51b5d 100644 --- a/eng/WpfArcadeSdk/tools/Wpf.Cpp.props +++ b/eng/WpfArcadeSdk/tools/Wpf.Cpp.props @@ -48,16 +48,16 @@ - false + false true - true + true - NetCore + - - - + diff --git a/src/Microsoft.DotNet.Wpf/src/System.Printing/System.Printing.vcxproj b/src/Microsoft.DotNet.Wpf/src/System.Printing/System.Printing.vcxproj index d2fe5dc40de..16c743024d6 100644 --- a/src/Microsoft.DotNet.Wpf/src/System.Printing/System.Printing.vcxproj +++ b/src/Microsoft.DotNet.Wpf/src/System.Printing/System.Printing.vcxproj @@ -40,7 +40,7 @@ NetCoreCProj - pure + NetCore 10.0 DynamicLibrary @@ -57,7 +57,7 @@ %(AdditionalIncludeDirectories);$(WpfSharedDir)\inc;.\CPP;.\CPP\inc;.\CPP\inc\GDIExporter $(CDefines);%(PreprocessorDefinitions) - pure + NetCore Use Win32Inc.hpp false @@ -161,12 +161,7 @@ - - - - + <_defineReferences>@(_defineReference->'%(Define)=<%(Identity)>') From 5f0341edfbce67c6b780b475e1ef093269bbe75c Mon Sep 17 00:00:00 2001 From: Vinay Narayana Date: Wed, 22 Apr 2026 12:03:47 +0530 Subject: [PATCH 2/4] Remove empty PropertyGroup left from /clr:pure removal Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- eng/WpfArcadeSdk/tools/Wpf.Cpp.props | 7 ------- 1 file changed, 7 deletions(-) diff --git a/eng/WpfArcadeSdk/tools/Wpf.Cpp.props b/eng/WpfArcadeSdk/tools/Wpf.Cpp.props index f44a8b51b5d..e7a517b0e29 100644 --- a/eng/WpfArcadeSdk/tools/Wpf.Cpp.props +++ b/eng/WpfArcadeSdk/tools/Wpf.Cpp.props @@ -53,13 +53,6 @@ true - - - - - - /dllrename:$(VCRuntimeDllBaseName)$(VCRuntimeVersion)$(LibSuffix)=$(VCRuntimeDllBaseName)$(VCRuntimeVersion)$(LibSuffix)$(WpfVersionSuffix) + /dllrename:$(VCRuntimeDllBaseName)$(VCRuntimeVersion)$(LibSuffix)=$(VCRuntimeDllBaseName)$(VCRuntimeVersion)$(LibSuffix)$(WpfVersionSuffix) $(StaticUCRTLibrary);$(StaticVCRTLibrary);$(StaticCRTStartupLibrary);$(StaticStandardCppLibrary);$(DynamicUCRTLibrary);$(DynamicVCRTLibrary);$(DynamicCRTStartupLibrary);$(DynamicStandardCppLibrary) From 1fec6c83d158390ff130f6d217dfc2497583e9f7 Mon Sep 17 00:00:00 2001 From: "dotnet-maestro[bot]" Date: Tue, 12 May 2026 08:10:55 +0000 Subject: [PATCH 4/4] Update dependencies from https://dev.azure.com/dnceng/internal/_git/dotnet-wpf-int build 20260512.2 On relative base path root Microsoft.DotNet.Wpf.DncEng From Version 11.0.0-preview.2.26165.1 -> To Version 11.0.0-preview.2.26262.2 --- eng/Version.Details.props | 2 +- eng/Version.Details.xml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/eng/Version.Details.props b/eng/Version.Details.props index 42345044cc9..5509fa51b2e 100644 --- a/eng/Version.Details.props +++ b/eng/Version.Details.props @@ -33,7 +33,7 @@ This file should be imported by eng/Versions.props 11.0.0-preview.5.26229.113 11.0.0-preview.5.26229.113 - 11.0.0-preview.2.26165.1 + 11.0.0-preview.2.26262.2 diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml index 319274ed6e6..0f841adfce1 100644 --- a/eng/Version.Details.xml +++ b/eng/Version.Details.xml @@ -22,9 +22,9 @@ https://github.com/dotnet/dotnet 4c4e7f410fc876590f219fc6022b6c18d6f6a475 - + https://dev.azure.com/dnceng/internal/_git/dotnet-wpf-int - 6e4ce3f54f3417a3bd31e9631ee20afb3a9ed0a3 + 0f3efdfc3b5fe2e9ff10112b632914d6c26b230b https://github.com/dotnet/dotnet