From 7a108bb9d9d97bdbd6e53c8d2661577a3e12a175 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 11 Aug 2024 19:34:23 -0700 Subject: [PATCH] Fix comment --- .../CreateWindowsSdkKnownFrameworkReferences.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/CreateWindowsSdkKnownFrameworkReferences.cs b/src/Tasks/Microsoft.NET.Build.Tasks/CreateWindowsSdkKnownFrameworkReferences.cs index b85961eb5b89..23456ec4e648 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/CreateWindowsSdkKnownFrameworkReferences.cs +++ b/src/Tasks/Microsoft.NET.Build.Tasks/CreateWindowsSdkKnownFrameworkReferences.cs @@ -97,11 +97,12 @@ protected override void ExecuteCore() private static TaskItem[] CreateKnownFrameworkReferences(string windowsSdkPackageVersion, string targetFrameworkVersion, string targetPlatformVersion) { - // Return two items: - // - No profile: with the entire Windows SDK (including Windows.UI.Xaml.* types), only used by downlevel .NET SDKs. - // We still need to return this item here too so that the filtering logic for profiles will work correctly. - // - "Windows": just the Windows SDK, without anything in Windows.UI.Xaml.* + // Return three items: + // - No profile: with the entire Windows SDK (including Windows.UI.Xaml.* types), only used by downlevel .NET SDKs + // - "Windows": just the Windows SDK, without anything in Windows.UI.Xaml.* .dll // - "Xaml": just the Windows.UI.Xaml types + // + // Note: we still need to return the item with no profile even if unused, so that the filtering logic for profiles will work correctly. return [ CreateKnownFrameworkReference(windowsSdkPackageVersion, targetFrameworkVersion, targetPlatformVersion, profile: null),