|
9 | 9 | <!-- DesignTimeBuild requires all the TargetFramework Derived Properties to not be present in the first property group. -->
|
10 | 10 | <PropertyGroup>
|
11 | 11 | <TargetPlatformIdentifier>$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)'))</TargetPlatformIdentifier>
|
| 12 | + <UseManagedNtlm Condition="'$(UseManagedNtlm)' == '' and ('$(TargetPlatformIdentifier)' == 'Android' or '$(TargetPlatformIdentifier)' == 'tvOS')">true</UseManagedNtlm> |
12 | 13 | <GeneratePlatformNotSupportedAssemblyMessage Condition="'$(TargetPlatformIdentifier)' == ''">SR.PlatformNotSupported_NetHttp</GeneratePlatformNotSupportedAssemblyMessage>
|
13 | 14 | <DefineConstants Condition="'$(TargetPlatformIdentifier)' == 'OSX' or '$(TargetPlatformIdentifier)' == 'iOS' or '$(TargetPlatformIdentifier)' == 'tvOS' or '$(TargetPlatformIdentifier)' == 'MacCatalyst'">$(DefineConstants);SYSNETHTTP_NO_OPENSSL</DefineConstants>
|
14 | 15 | <DefineConstants Condition="'$(TargetPlatformIdentifier)' == 'Android' or '$(TargetPlatformIdentifier)' == 'iOS' or '$(TargetPlatformIdentifier)' == 'MacCatalyst' or '$(TargetPlatformIdentifier)' == 'tvOS'">$(DefineConstants);TARGET_MOBILE</DefineConstants>
|
|
159 | 160 | <Compile Include="System\Net\Http\Headers\KnownHeader.Http2And3.cs" />
|
160 | 161 | <Compile Include="System\Net\Http\SocketsHttpHandler\AuthenticationHelper.cs" />
|
161 | 162 | <Compile Include="System\Net\Http\SocketsHttpHandler\AuthenticationHelper.Digest.cs" />
|
162 |
| - <Compile Condition="'$(TargetPlatformIdentifier)' != 'tvOS'" Include="System\Net\Http\SocketsHttpHandler\AuthenticationHelper.NtAuth.cs" /> |
| 163 | + <Compile Include="System\Net\Http\SocketsHttpHandler\AuthenticationHelper.NtAuth.cs" /> |
163 | 164 | <Compile Include="System\Net\Http\SocketsHttpHandler\ChunkedEncodingReadStream.cs" />
|
164 | 165 | <Compile Include="System\Net\Http\SocketsHttpHandler\ChunkedEncodingWriteStream.cs" />
|
165 | 166 | <Compile Include="System\Net\Http\SocketsHttpHandler\ConnectHelper.cs" />
|
|
208 | 209 | <Compile Include="System\Net\Http\SocketsHttpHandler\SystemProxyInfo.cs" />
|
209 | 210 | <Compile Include="System\Net\Http\SocketsHttpHandler\SocksHelper.cs" />
|
210 | 211 | <Compile Include="System\Net\Http\SocketsHttpHandler\SocksException.cs" />
|
211 |
| - <Compile Condition="'$(TargetPlatformIdentifier)' != 'tvOS'" Include="$(CommonPath)System\Net\NTAuthentication.Common.cs" |
| 212 | + <Compile Condition="'$(UseManagedNtlm)' != 'true'" Include="$(CommonPath)System\Net\NTAuthentication.Common.cs" |
212 | 213 | Link="Common\System\Net\NTAuthentication.Common.cs" />
|
213 | 214 | <Compile Include="$(CommonPath)System\Net\ContextFlagsPal.cs"
|
214 | 215 | Link="Common\System\Net\ContextFlagsPal.cs" />
|
|
346 | 347 | <Compile Include="$(CommonPath)Interop\Unix\System.Net.Security.Native\Interop.NetSecurityNative.IsNtlmInstalled.cs"
|
347 | 348 | Link="Common\Interop\Unix\System.Net.Security.Native\Interop.NetSecurityNative.IsNtlmInstalled.cs" />
|
348 | 349 | </ItemGroup>
|
349 |
| - <ItemGroup Condition="'$(TargetPlatformIdentifier)' != '' and '$(TargetPlatformIdentifier)' != 'windows' and '$(TargetPlatformIdentifier)' != 'Browser' and '$(TargetPlatformIdentifier)' != 'tvOS'"> |
| 350 | + <ItemGroup Condition="'$(TargetPlatformIdentifier)' != '' and '$(TargetPlatformIdentifier)' != 'windows' and '$(TargetPlatformIdentifier)' != 'Browser' and '$(UseManagedNtlm)' != 'true'"> |
350 | 351 | <Compile Include="$(CommonPath)Interop\Unix\System.Net.Security.Native\Interop.GssApiException.cs"
|
351 | 352 | Link="Common\Interop\Unix\System.Net.Security.Native\Interop.GssApiException.cs" />
|
352 | 353 | <Compile Include="$(CommonPath)Interop\Unix\System.Net.Security.Native\Interop.GssBuffer.cs"
|
|
362 | 363 | <Compile Include="$(CommonPath)System\Net\Security\NegotiateStreamPal.Unix.cs"
|
363 | 364 | Link="Common\System\Net\Security\NegotiateStreamPal.Unix.cs" />
|
364 | 365 | </ItemGroup>
|
365 |
| - <ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'tvOS'"> |
366 |
| - <Compile Include="System\Net\Http\SocketsHttpHandler\AuthenticationHelper.NtAuth.tvOS.cs" /> |
367 |
| - <Compile Include="$(CommonPath)Microsoft\Win32\SafeHandles\GssSafeHandles.PlatformNotSupported.cs" |
368 |
| - Link="Common\Microsoft\Win32\SafeHandles\GssSafeHandles.PlatformNotSupported.cs" /> |
369 |
| - <Compile Include="$(CommonPath)System\Net\Security\NegotiateStreamPal.PlatformNotSupported.cs" |
370 |
| - Link="Common\System\Net\Security\NegotiateStreamPal.PlatformNotSupported.cs" /> |
| 366 | + <ItemGroup Condition="'$(UseManagedNtlm)' == 'true'"> |
| 367 | + <Compile Include="$(CommonPath)System\Net\NTAuthentication.Managed.cs" |
| 368 | + Link="Common\System\Net\NTAuthentication.Managed.cs" /> |
| 369 | + <Compile Include="$(CommonPath)System\Net\Security\MD4.cs" |
| 370 | + Link="Common\System\Net\Security\MD4.cs" /> |
| 371 | + <Compile Include="$(CommonPath)System\Net\Security\RC4.cs" |
| 372 | + Link="Common\System\Net\Security\RC4.cs" /> |
371 | 373 | </ItemGroup>
|
372 | 374 | <ItemGroup Condition="'$(TargetPlatformIdentifier)' != '' and '$(TargetPlatformIdentifier)' != 'windows' and '$(TargetPlatformIdentifier)' != 'Browser' and '$(TargetPlatformIdentifier)' != 'OSX' and '$(TargetPlatformIdentifier)' != 'iOS' and '$(TargetPlatformIdentifier)' != 'tvOS'">
|
373 | 375 | <Compile Include="System\Net\Http\SocketsHttpHandler\HttpNoProxy.cs" />
|
|
675 | 677 | <ItemGroup Condition="'$(TargetPlatformIdentifier)' == 'Browser'">
|
676 | 678 | <ProjectReference Include="$(LibrariesProjectRoot)System.Private.Runtime.InteropServices.JavaScript\src\System.Private.Runtime.InteropServices.JavaScript.csproj" />
|
677 | 679 | </ItemGroup>
|
| 680 | + <ItemGroup Condition="'$(UseManagedNtlm)' == 'true'"> |
| 681 | + <ProjectReference Include="$(LibrariesProjectRoot)System.Formats.Asn1\src\System.Formats.Asn1.csproj" /> |
| 682 | + </ItemGroup> |
678 | 683 | <ItemGroup>
|
679 | 684 | <None Include="Resources\SR.resx" />
|
680 | 685 | </ItemGroup>
|
|
0 commit comments