[maccatalyst] Make sure MacProxy is included in System.Net.Http (#91599)
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Mon, 11 Sep 2023 23:18:32 +0000 (17:18 -0600)
committerGitHub <noreply@github.com>
Mon, 11 Sep 2023 23:18:32 +0000 (17:18 -0600)
commitbfdfb82ad34baa6381dc6cc22c4ec695aafa8525
tree206f12901b6525e9cf62be0d48ecc0aac332767f
parent64c5aaede2e82c4f353d3cac7111b10ebced2dec
[maccatalyst] Make sure MacProxy is included in System.Net.Http (#91599)

https://github.com/dotnet/runtime/issues/90258 identified that `HttpClient.DefaultProxy` returned `System.Net.Http.HttpNoProxy` when using MacCatalyst. This is due to a condition in System.Net.Http.csproj not including maccatalyst as a condition and as a result, skipped adding the MacProxy sources.

Way back when, https://github.com/dotnet/runtime/pull/47823 had the condition, but this appears to have changed in https://github.com/dotnet/runtime/pull/48652 when we thought MacCatalyst would inherit settings from iOS. That turned out to not be the case and this check was never added back.

Co-authored-by: Steve Pfister <steve.pfister@microsoft.com>
src/libraries/System.Net.Http/src/System.Net.Http.csproj