[System] Remove any CFNetwork usage from the watchOS profile. Fixes #45847.
using System.Collections;
using System.Collections.Generic;
using System.Text.RegularExpressions;
+#if !MONOTOUCH_WATCH
using Mono.Net;
+#endif
namespace System.Net
{
Mono.Net.Security/MonoTlsStream.cs
Mono.Net.Security/NoReflectionHelper.cs
Mono.Net.Security/SystemCertificateValidator.cs
+System.Net/MacProxy.cs
System.Net.Mail/SmtpClient.cs
System.Net.Security/SslStream.cs
System.Net.Sockets/TcpClient.cs
#if MONO
public static IWebProxy CreateDefaultProxy ()
{
-#if MONOTOUCH
+#if MONOTOUCH_WATCH
+ throw new PlatformNotSupportedException ();
+#elif MONOTOUCH
return Mono.Net.CFNetwork.GetDefaultProxy ();
#elif MONODROID
// Return the system web proxy. This only works for ICS+.