Skip to content

Commit c4476b9

Browse files
authored
Add internal _UseManagedNtlm feature switch (#34903)
2 parents b3a780d + 9f43628 commit c4476b9

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

src/Assets/TestProjects/KitchenSink/TestApp/TestApp.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
<ThreadPoolMinThreads>2</ThreadPoolMinThreads>
4343
<ThreadPoolMaxThreads>9</ThreadPoolMaxThreads>
4444
<UseWindowsThreadPool>true</UseWindowsThreadPool>
45+
<_UseManagedNtlm>true</_UseManagedNtlm>
4546
</PropertyGroup>
4647

4748
<ItemGroup>

src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.targets

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,11 @@ Copyright (c) .NET Foundation. All rights reserved.
550550
Value="$(UseNativeHttpHandler)"
551551
Trim="true" />
552552

553+
<RuntimeHostConfigurationOption Include="System.Net.Security.UseManagedNtlm"
554+
Condition="'$(_UseManagedNtlm)' != ''"
555+
Value="$(_UseManagedNtlm)"
556+
Trim="true" />
557+
553558
<RuntimeHostConfigurationOption Include="System.Reflection.Metadata.MetadataUpdater.IsSupported"
554559
Condition="'$(MetadataUpdaterSupport)' != ''"
555560
Value="$(MetadataUpdaterSupport)"

src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAProjectWithAllFeatures.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ public void It_publishes_the_project_correctly(string targetFramework, string[]
6868
""System.GC.RetainVM"": false,
6969
""System.Net.Http.EnableActivityPropagation"": false,
7070
""System.Net.Http.UseNativeHttpHandler"": true,
71+
""System.Net.Security.UseManagedNtlm"": true,
7172
""System.Reflection.Metadata.MetadataUpdater.IsSupported"": false,
7273
""System.Reflection.NullabilityInfoContext.IsSupported"": false,
7374
""System.Resources.ResourceManager.AllowCustomResourceTypes"": false,

0 commit comments

Comments
 (0)