[msbuild] Change MtouchHttpClientHandler default (#4172)

If the Http Client value isn't set in the csproj, we should default to `NSUrlSessionHandler` which is also what the Xamarin.iOS Analysis rules try to enforce.
This commit is contained in:
Vincent Dondain 2018-08-29 15:16:19 -04:00 коммит произвёл GitHub
Родитель 3ec40cbb1d
Коммит 6cfc8b5a60
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -40,7 +40,7 @@ Copyright (C) 2013-2016 Xamarin. All rights reserved.
<MtouchDebug Condition="'$(MtouchDebug)' == ''">False</MtouchDebug>
<MtouchEnableGenericValueTypeSharing Condition="'$(MtouchEnableGenericValueTypeSharing)' == ''">True</MtouchEnableGenericValueTypeSharing>
<MtouchFastDev Condition="'$(MtouchFastDev)' == ''">False</MtouchFastDev>
<MtouchHttpClientHandler Condition="'$(MtouchHttpClientHandler)' == ''">HttpClientHandler</MtouchHttpClientHandler>
<MtouchHttpClientHandler Condition="'$(MtouchHttpClientHandler)' == ''">NSUrlSessionHandler</MtouchHttpClientHandler>
<MtouchProfiling Condition="'$(MtouchProfiling)' == ''">False</MtouchProfiling>
<MtouchLinkerDumpDependencies Condition="'$(MtouchLinkerDumpDependencies)' == ''">False</MtouchLinkerDumpDependencies>
<MtouchLink Condition="'$(MtouchLink)' == ''">SdkOnly</MtouchLink>

Просмотреть файл

@ -3673,8 +3673,8 @@ public class TestApp {
[TestCase ("CFNetworkHandler", "CFNetworkHandler")]
[TestCase ("NSUrlSessionHandler", "NSUrlSessionHandler")]
[TestCase ("HttpClientHandler", "HttpClientHandler")]
[TestCase (null, "HttpClientHandler")]
[TestCase ("", "HttpClientHandler")]
[TestCase (null, "NSUrlSessionHandler")]
[TestCase ("", "NSUrlSessionHandler")]
public void HttpClientHandler (string mtouchHandler, string expectedHandler)
{
var testCode = $@"