From d26eaaca20aa2f5de768e4053593f50a30776380 Mon Sep 17 00:00:00 2001 From: Nirmal Guru Date: Fri, 4 Jun 2021 21:31:11 +0530 Subject: [PATCH] Disable .NET Framework's WinFX targets import (#4630) Only when the Windows Desktop SDK is used directly instead! Example: ```xml - + ``` --- .../Sdk/Sdk.props | 15 +++++++++++++-- .../Microsoft.NET.Sdk.WindowsDesktop.props | 10 ---------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/packaging/Microsoft.NET.Sdk.WindowsDesktop/Sdk/Sdk.props b/packaging/Microsoft.NET.Sdk.WindowsDesktop/Sdk/Sdk.props index 8c33d1d597e..697cd52fe21 100644 --- a/packaging/Microsoft.NET.Sdk.WindowsDesktop/Sdk/Sdk.props +++ b/packaging/Microsoft.NET.Sdk.WindowsDesktop/Sdk/Sdk.props @@ -15,10 +15,21 @@ Copyright (c) .NET Foundation. All rights reserved. <_MicrosoftWindowsDesktopSdkImported>true + + + false + + - true diff --git a/packaging/Microsoft.NET.Sdk.WindowsDesktop/targets/Microsoft.NET.Sdk.WindowsDesktop.props b/packaging/Microsoft.NET.Sdk.WindowsDesktop/targets/Microsoft.NET.Sdk.WindowsDesktop.props index fd610f3ac50..d04f9b04b58 100644 --- a/packaging/Microsoft.NET.Sdk.WindowsDesktop/targets/Microsoft.NET.Sdk.WindowsDesktop.props +++ b/packaging/Microsoft.NET.Sdk.WindowsDesktop/targets/Microsoft.NET.Sdk.WindowsDesktop.props @@ -161,14 +161,4 @@ - - - false - -