From c5b9a34e71bc407b05e273a12247be81d7fc6d7a Mon Sep 17 00:00:00 2001 From: Filip Navara Date: Thu, 24 Aug 2023 15:43:03 +0200 Subject: [PATCH 1/2] Add internal _UseManagedNtlm feature switch --- .../targets/Microsoft.NET.Sdk.targets | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.targets b/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.targets index 4002ebb89f0e..20cc00db7299 100644 --- a/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.targets +++ b/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.targets @@ -550,6 +550,11 @@ Copyright (c) .NET Foundation. All rights reserved. Value="$(UseNativeHttpHandler)" Trim="true" /> + + Date: Fri, 25 Aug 2023 22:06:56 +0200 Subject: [PATCH 2/2] Add test --- src/Assets/TestProjects/KitchenSink/TestApp/TestApp.csproj | 1 + .../GivenThatWeWantToPublishAProjectWithAllFeatures.cs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/Assets/TestProjects/KitchenSink/TestApp/TestApp.csproj b/src/Assets/TestProjects/KitchenSink/TestApp/TestApp.csproj index 5d8801e682fd..09b6985ab8fa 100644 --- a/src/Assets/TestProjects/KitchenSink/TestApp/TestApp.csproj +++ b/src/Assets/TestProjects/KitchenSink/TestApp/TestApp.csproj @@ -41,6 +41,7 @@ false 2 9 + <_UseManagedNtlm>true diff --git a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAProjectWithAllFeatures.cs b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAProjectWithAllFeatures.cs index d60ceca1aad9..10f46af98cde 100644 --- a/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAProjectWithAllFeatures.cs +++ b/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAProjectWithAllFeatures.cs @@ -68,6 +68,7 @@ public void It_publishes_the_project_correctly(string targetFramework, string[] ""System.GC.RetainVM"": false, ""System.Net.Http.EnableActivityPropagation"": false, ""System.Net.Http.UseNativeHttpHandler"": true, + ""System.Net.Security.UseManagedNtlm"": true, ""System.Reflection.Metadata.MetadataUpdater.IsSupported"": false, ""System.Reflection.NullabilityInfoContext.IsSupported"": false, ""System.Resources.ResourceManager.AllowCustomResourceTypes"": false,