Skip to content

Commit

Permalink
[System] Unify Mono.Security dependency to be same for all profiles
Browse files Browse the repository at this point in the history
  • Loading branch information
marek-safar committed Jan 3, 2017
1 parent 248fded commit 208dd1e
Show file tree
Hide file tree
Showing 21 changed files with 42 additions and 361 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//

#if !MONOTOUCH && !XAMMAC

using System;
using System.Globalization;
using System.Security.Cryptography;
Expand Down Expand Up @@ -199,3 +201,5 @@ public byte[] TransformFinalBlock (byte[] inputBuffer, int inputOffset, int inpu
}
}
}

#endif
129 changes: 0 additions & 129 deletions mcs/class/Mono.Security/mobile_Mono.Security.dll.sources

This file was deleted.

5 changes: 0 additions & 5 deletions mcs/class/Mono.Security/monodroid_Mono.Security.dll.sources

This file was deleted.

3 changes: 2 additions & 1 deletion mcs/class/Mono.Security/monotouch_Mono.Security.dll.sources
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include mobile_Mono.Security.dll.sources
#include Mono.Security.dll.sources
../corlib/CommonCrypto/CommonCrypto.cs
../corlib/CommonCrypto/RC4CommonCrypto.cs
Mono.Security.Interface/MonoTlsProviderFactory.Apple.cs

This file was deleted.

This file was deleted.

This file was deleted.

5 changes: 0 additions & 5 deletions mcs/class/Mono.Security/winaot_Mono.Security.dll.sources

This file was deleted.

3 changes: 0 additions & 3 deletions mcs/class/Mono.Security/xammac_Mono.Security.dll.sources
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#include monotouch_Mono.Security.dll.sources
../corlib/CommonCrypto/CommonCrypto.cs
../corlib/CommonCrypto/RC4CommonCrypto.cs

17 changes: 6 additions & 11 deletions mcs/class/System/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,21 @@ TEST_RESOURCES = \
Test/System/test-uri-props-manual.txt \
Test/System/test-uri-relative-props.txt

LIB_MCS_FLAGS = -d:CONFIGURATION_2_0 $(REFERENCE_SOURCES_FLAGS) -unsafe $(RESOURCE_FILES:%=-resource:%) -nowarn:436

ifndef NO_MONO_SECURITY
MONO_SECURITY=Mono.Security
MONO_SECURITY_REF=MonoSecurity=Mono.Security
MONO_SECURITY_DLL=$(the_libdir_base)Mono.Security.dll
EXTERN_ALIAS_FLAGS = -d:MONO_SECURITY_ALIAS
else
LIB_MCS_FLAGS += -d:INSIDE_SYSTEM
endif

ifndef MOBILE_PROFILE
TEST_LIB_REFS = System.Drawing $(MONO_SECURITY) System.Data System.Xml System.Core System.Configuration
else
LIB_MCS_FLAGS += -nowarn:618

This comment has been minimized.

Copy link
@akoeplinger

akoeplinger Jan 3, 2017

Member

Could we add this to all the profiles for all assemblies? There are a lot of obsolete warnings in the BCL build that we won't be ever fixing and they make the warning list less useful.

This comment has been minimized.

Copy link
@marek-safar

marek-safar Jan 3, 2017

Author Member

There is not that many obsolete warnings, all referencesource code uses pragma warning correctly. When disabled globally that would generate another warning.
The only obsolete noise we get is from CAS in mobile profiles

This comment has been minimized.

Copy link
@akoeplinger

akoeplinger Jan 3, 2017

Member

These are the 209 CS0618 warnings I get from a net_4_x BCL build with latest master:

System.Diagnostics/Win32EventLog.cs(724,51): warning CS0618: 'WaitHandle.Handle' is obsolete: 'Use the SafeWaitHandle property instead.'
System.Diagnostics/FileVersionInfo.cs(148,9): warning CS0618: 'SecurityManager.SecurityEnabled' is obsolete: 'The security manager cannot be turned off on MS runtime'
System.Diagnostics/FileVersionInfo.cs(282,8): warning CS0618: 'SecurityManager.SecurityEnabled' is obsolete: 'The security manager cannot be turned off on MS runtime'
System.Diagnostics/EventLogEntry.cs(172,6): warning CS0618: 'EventLogEntry.EventID' is obsolete: 'Use InstanceId'
System.Diagnostics/Process.cs(758,39): warning CS0618: 'FileStream.FileStream(IntPtr, FileAccess, bool, int)' is obsolete: 'Use FileStream(SafeFileHandle handle, FileAccess access, int bufferSize) instead'
System.Diagnostics/Process.cs(768,40): warning CS0618: 'FileStream.FileStream(IntPtr, FileAccess, bool, int)' is obsolete: 'Use FileStream(SafeFileHandle handle, FileAccess access, int bufferSize) instead'
System.Diagnostics/Process.cs(776,39): warning CS0618: 'FileStream.FileStream(IntPtr, FileAccess, bool, int)' is obsolete: 'Use FileStream(SafeFileHandle handle, FileAccess access, int bufferSize) instead'
System.Net/HttpWebRequest.cs(137,23): warning CS0618: 'ConfigurationSettings.GetConfig(string)' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.GetSection'
System.Net/FtpWebRequest.cs(116,17): warning CS0618: 'GlobalProxySelection' is obsolete: 'This class has been deprecated. Please use WebRequest.DefaultWebProxy instead to access and set the global default proxy. Use 'null' instead of GetEmptyWebProxy. http://go.microsoft.com/fwlink/?linkid=14202'
/Users/alexander/dev/mono/mcs/class/referencesource/System/net/System/Net/Internal.cs(312,20): warning CS0618: 'Dns.GetHostByName(string)' is obsolete: 'Use GetHostEntry instead'
System.Net/Dns.cs(323,11): warning CS0618: 'Socket.SupportsIPv6' is obsolete: 'SupportsIPv6 is obsoleted for this type, please use OSSupportsIPv6 instead. http://go.microsoft.com/fwlink/?linkid=14202'
System.Net/Dns.cs(324,11): warning CS0618: 'Socket.SupportsIPv4' is obsolete: 'SupportsIPv4 is obsoleted for this type, please use OSSupportsIPv4 instead. http://go.microsoft.com/fwlink/?linkid=14202'
System.Net/Dns.cs(396,11): warning CS0618: 'Dns.GetHostByName(string)' is obsolete: 'Use GetHostEntry instead'
System.Net/AuthenticationManager.cs(72,5): warning CS0618: 'ConfigurationSettings.GetConfig(string)' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.GetSection'
System.Diagnostics/Win32EventLog.cs(724,51): warning CS0618: 'WaitHandle.Handle' is obsolete: 'Use the SafeWaitHandle property instead.'
System.Diagnostics/FileVersionInfo.cs(148,9): warning CS0618: 'SecurityManager.SecurityEnabled' is obsolete: 'The security manager cannot be turned off on MS runtime'
System.Diagnostics/FileVersionInfo.cs(282,8): warning CS0618: 'SecurityManager.SecurityEnabled' is obsolete: 'The security manager cannot be turned off on MS runtime'
System.Diagnostics/EventLogEntry.cs(172,6): warning CS0618: 'EventLogEntry.EventID' is obsolete: 'Use InstanceId'
System.Diagnostics/Process.cs(758,39): warning CS0618: 'FileStream.FileStream(IntPtr, FileAccess, bool, int)' is obsolete: 'Use FileStream(SafeFileHandle handle, FileAccess access, int bufferSize) instead'
System.Diagnostics/Process.cs(768,40): warning CS0618: 'FileStream.FileStream(IntPtr, FileAccess, bool, int)' is obsolete: 'Use FileStream(SafeFileHandle handle, FileAccess access, int bufferSize) instead'
System.Diagnostics/Process.cs(776,39): warning CS0618: 'FileStream.FileStream(IntPtr, FileAccess, bool, int)' is obsolete: 'Use FileStream(SafeFileHandle handle, FileAccess access, int bufferSize) instead'
System.Net/HttpWebRequest.cs(137,23): warning CS0618: 'ConfigurationSettings.GetConfig(string)' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.GetSection'
/Users/alexander/dev/mono/mcs/class/referencesource/System/net/System/Net/Internal.cs(312,20): warning CS0618: 'Dns.GetHostByName(string)' is obsolete: 'Use GetHostEntry instead'
System.Net/FtpWebRequest.cs(116,17): warning CS0618: 'GlobalProxySelection' is obsolete: 'This class has been deprecated. Please use WebRequest.DefaultWebProxy instead to access and set the global default proxy. Use 'null' instead of GetEmptyWebProxy. http://go.microsoft.com/fwlink/?linkid=14202'
System.Net/EndPointManager.cs(89,27): warning CS0618: 'Dns.GetHostByName(string)' is obsolete: 'Use GetHostEntry instead'
System.Net/Dns.cs(323,11): warning CS0618: 'Socket.SupportsIPv6' is obsolete: 'SupportsIPv6 is obsoleted for this type, please use OSSupportsIPv6 instead. http://go.microsoft.com/fwlink/?linkid=14202'
System.Net/Dns.cs(324,11): warning CS0618: 'Socket.SupportsIPv4' is obsolete: 'SupportsIPv4 is obsoleted for this type, please use OSSupportsIPv4 instead. http://go.microsoft.com/fwlink/?linkid=14202'
System.Net/Dns.cs(396,11): warning CS0618: 'Dns.GetHostByName(string)' is obsolete: 'Use GetHostEntry instead'
System.Net/AuthenticationManager.cs(72,5): warning CS0618: 'ConfigurationSettings.GetConfig(string)' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.GetSection'
System.Diagnostics/Win32EventLog.cs(724,51): warning CS0618: 'WaitHandle.Handle' is obsolete: 'Use the SafeWaitHandle property instead.'
System.Diagnostics/FileVersionInfo.cs(148,9): warning CS0618: 'SecurityManager.SecurityEnabled' is obsolete: 'The security manager cannot be turned off on MS runtime'
System.Diagnostics/FileVersionInfo.cs(282,8): warning CS0618: 'SecurityManager.SecurityEnabled' is obsolete: 'The security manager cannot be turned off on MS runtime'
System.Diagnostics/EventLogEntry.cs(172,6): warning CS0618: 'EventLogEntry.EventID' is obsolete: 'Use InstanceId'
System.Diagnostics/Process.cs(758,39): warning CS0618: 'FileStream.FileStream(IntPtr, FileAccess, bool, int)' is obsolete: 'Use FileStream(SafeFileHandle handle, FileAccess access, int bufferSize) instead'
System.Diagnostics/Process.cs(768,40): warning CS0618: 'FileStream.FileStream(IntPtr, FileAccess, bool, int)' is obsolete: 'Use FileStream(SafeFileHandle handle, FileAccess access, int bufferSize) instead'
System.Diagnostics/Process.cs(776,39): warning CS0618: 'FileStream.FileStream(IntPtr, FileAccess, bool, int)' is obsolete: 'Use FileStream(SafeFileHandle handle, FileAccess access, int bufferSize) instead'
/Users/alexander/dev/mono/mcs/class/referencesource/System/net/System/Net/Internal.cs(312,20): warning CS0618: 'Dns.GetHostByName(string)' is obsolete: 'Use GetHostEntry instead'
System.Net/HttpWebRequest.cs(137,23): warning CS0618: 'ConfigurationSettings.GetConfig(string)' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.GetSection'
System.Net/FtpWebRequest.cs(116,17): warning CS0618: 'GlobalProxySelection' is obsolete: 'This class has been deprecated. Please use WebRequest.DefaultWebProxy instead to access and set the global default proxy. Use 'null' instead of GetEmptyWebProxy. http://go.microsoft.com/fwlink/?linkid=14202'
System.Net/EndPointManager.cs(89,27): warning CS0618: 'Dns.GetHostByName(string)' is obsolete: 'Use GetHostEntry instead'
System.Net/Dns.cs(323,11): warning CS0618: 'Socket.SupportsIPv6' is obsolete: 'SupportsIPv6 is obsoleted for this type, please use OSSupportsIPv6 instead. http://go.microsoft.com/fwlink/?linkid=14202'
System.Net/Dns.cs(324,11): warning CS0618: 'Socket.SupportsIPv4' is obsolete: 'SupportsIPv4 is obsoleted for this type, please use OSSupportsIPv4 instead. http://go.microsoft.com/fwlink/?linkid=14202'
System.Net/Dns.cs(396,11): warning CS0618: 'Dns.GetHostByName(string)' is obsolete: 'Use GetHostEntry instead'
System.Diagnostics/Win32EventLog.cs(724,51): warning CS0618: 'WaitHandle.Handle' is obsolete: 'Use the SafeWaitHandle property instead.'
System.Diagnostics/FileVersionInfo.cs(148,9): warning CS0618: 'SecurityManager.SecurityEnabled' is obsolete: 'The security manager cannot be turned off on MS runtime'
System.Diagnostics/FileVersionInfo.cs(282,8): warning CS0618: 'SecurityManager.SecurityEnabled' is obsolete: 'The security manager cannot be turned off on MS runtime'
System.Diagnostics/EventLogEntry.cs(172,6): warning CS0618: 'EventLogEntry.EventID' is obsolete: 'Use InstanceId'
System.Diagnostics/Process.cs(758,39): warning CS0618: 'FileStream.FileStream(IntPtr, FileAccess, bool, int)' is obsolete: 'Use FileStream(SafeFileHandle handle, FileAccess access, int bufferSize) instead'
System.Diagnostics/Process.cs(768,40): warning CS0618: 'FileStream.FileStream(IntPtr, FileAccess, bool, int)' is obsolete: 'Use FileStream(SafeFileHandle handle, FileAccess access, int bufferSize) instead'
System.Diagnostics/Process.cs(776,39): warning CS0618: 'FileStream.FileStream(IntPtr, FileAccess, bool, int)' is obsolete: 'Use FileStream(SafeFileHandle handle, FileAccess access, int bufferSize) instead'
/Users/alexander/dev/mono/mcs/class/referencesource/System/net/System/Net/Internal.cs(312,20): warning CS0618: 'Dns.GetHostByName(string)' is obsolete: 'Use GetHostEntry instead'
System.Net/HttpWebRequest.cs(137,23): warning CS0618: 'ConfigurationSettings.GetConfig(string)' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.GetSection'
System.Net/FtpWebRequest.cs(116,17): warning CS0618: 'GlobalProxySelection' is obsolete: 'This class has been deprecated. Please use WebRequest.DefaultWebProxy instead to access and set the global default proxy. Use 'null' instead of GetEmptyWebProxy. http://go.microsoft.com/fwlink/?linkid=14202'
System.Net/Dns.cs(323,11): warning CS0618: 'Socket.SupportsIPv6' is obsolete: 'SupportsIPv6 is obsoleted for this type, please use OSSupportsIPv6 instead. http://go.microsoft.com/fwlink/?linkid=14202'
System.Net/Dns.cs(324,11): warning CS0618: 'Socket.SupportsIPv4' is obsolete: 'SupportsIPv4 is obsoleted for this type, please use OSSupportsIPv4 instead. http://go.microsoft.com/fwlink/?linkid=14202'
System.Net/Dns.cs(396,11): warning CS0618: 'Dns.GetHostByName(string)' is obsolete: 'Use GetHostEntry instead'
System.Net/AuthenticationManager.cs(72,5): warning CS0618: 'ConfigurationSettings.GetConfig(string)' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.GetSection'
System.Diagnostics/Win32EventLog.cs(724,51): warning CS0618: 'WaitHandle.Handle' is obsolete: 'Use the SafeWaitHandle property instead.'
System.Diagnostics/FileVersionInfo.cs(148,9): warning CS0618: 'SecurityManager.SecurityEnabled' is obsolete: 'The security manager cannot be turned off on MS runtime'
System.Diagnostics/FileVersionInfo.cs(282,8): warning CS0618: 'SecurityManager.SecurityEnabled' is obsolete: 'The security manager cannot be turned off on MS runtime'
System.Diagnostics/EventLogEntry.cs(172,6): warning CS0618: 'EventLogEntry.EventID' is obsolete: 'Use InstanceId'
System.Diagnostics/Process.cs(758,39): warning CS0618: 'FileStream.FileStream(IntPtr, FileAccess, bool, int)' is obsolete: 'Use FileStream(SafeFileHandle handle, FileAccess access, int bufferSize) instead'
System.Diagnostics/Process.cs(768,40): warning CS0618: 'FileStream.FileStream(IntPtr, FileAccess, bool, int)' is obsolete: 'Use FileStream(SafeFileHandle handle, FileAccess access, int bufferSize) instead'
System.Diagnostics/Process.cs(776,39): warning CS0618: 'FileStream.FileStream(IntPtr, FileAccess, bool, int)' is obsolete: 'Use FileStream(SafeFileHandle handle, FileAccess access, int bufferSize) instead'
/Users/alexander/dev/mono/mcs/class/referencesource/System/net/System/Net/Internal.cs(312,20): warning CS0618: 'Dns.GetHostByName(string)' is obsolete: 'Use GetHostEntry instead'
System.Net/HttpWebRequest.cs(137,23): warning CS0618: 'ConfigurationSettings.GetConfig(string)' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.GetSection'
System.Net/FtpWebRequest.cs(116,17): warning CS0618: 'GlobalProxySelection' is obsolete: 'This class has been deprecated. Please use WebRequest.DefaultWebProxy instead to access and set the global default proxy. Use 'null' instead of GetEmptyWebProxy. http://go.microsoft.com/fwlink/?linkid=14202'
System.Net/EndPointManager.cs(89,27): warning CS0618: 'Dns.GetHostByName(string)' is obsolete: 'Use GetHostEntry instead'
System.Net/Dns.cs(323,11): warning CS0618: 'Socket.SupportsIPv6' is obsolete: 'SupportsIPv6 is obsoleted for this type, please use OSSupportsIPv6 instead. http://go.microsoft.com/fwlink/?linkid=14202'
System.Net/Dns.cs(324,11): warning CS0618: 'Socket.SupportsIPv4' is obsolete: 'SupportsIPv4 is obsoleted for this type, please use OSSupportsIPv4 instead. http://go.microsoft.com/fwlink/?linkid=14202'
System.Net/Dns.cs(396,11): warning CS0618: 'Dns.GetHostByName(string)' is obsolete: 'Use GetHostEntry instead'
System.Net/AuthenticationManager.cs(72,5): warning CS0618: 'ConfigurationSettings.GetConfig(string)' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.GetSection'
System.Diagnostics/Win32EventLog.cs(724,51): warning CS0618: 'WaitHandle.Handle' is obsolete: 'Use the SafeWaitHandle property instead.'
System.Diagnostics/FileVersionInfo.cs(148,9): warning CS0618: 'SecurityManager.SecurityEnabled' is obsolete: 'The security manager cannot be turned off on MS runtime'
System.Diagnostics/FileVersionInfo.cs(282,8): warning CS0618: 'SecurityManager.SecurityEnabled' is obsolete: 'The security manager cannot be turned off on MS runtime'
System.Diagnostics/EventLogEntry.cs(172,6): warning CS0618: 'EventLogEntry.EventID' is obsolete: 'Use InstanceId'
System.Diagnostics/Process.cs(758,39): warning CS0618: 'FileStream.FileStream(IntPtr, FileAccess, bool, int)' is obsolete: 'Use FileStream(SafeFileHandle handle, FileAccess access, int bufferSize) instead'
System.Diagnostics/Process.cs(768,40): warning CS0618: 'FileStream.FileStream(IntPtr, FileAccess, bool, int)' is obsolete: 'Use FileStream(SafeFileHandle handle, FileAccess access, int bufferSize) instead'
System.Diagnostics/Process.cs(776,39): warning CS0618: 'FileStream.FileStream(IntPtr, FileAccess, bool, int)' is obsolete: 'Use FileStream(SafeFileHandle handle, FileAccess access, int bufferSize) instead'
System.Net/HttpWebRequest.cs(137,23): warning CS0618: 'ConfigurationSettings.GetConfig(string)' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.GetSection'
/Users/alexander/dev/mono/mcs/class/referencesource/System/net/System/Net/Internal.cs(312,20): warning CS0618: 'Dns.GetHostByName(string)' is obsolete: 'Use GetHostEntry instead'
System.Net/FtpWebRequest.cs(116,17): warning CS0618: 'GlobalProxySelection' is obsolete: 'This class has been deprecated. Please use WebRequest.DefaultWebProxy instead to access and set the global default proxy. Use 'null' instead of GetEmptyWebProxy. http://go.microsoft.com/fwlink/?linkid=14202'
System.Net/EndPointManager.cs(89,27): warning CS0618: 'Dns.GetHostByName(string)' is obsolete: 'Use GetHostEntry instead'
System.Net/Dns.cs(323,11): warning CS0618: 'Socket.SupportsIPv6' is obsolete: 'SupportsIPv6 is obsoleted for this type, please use OSSupportsIPv6 instead. http://go.microsoft.com/fwlink/?linkid=14202'
System.Net/Dns.cs(324,11): warning CS0618: 'Socket.SupportsIPv4' is obsolete: 'SupportsIPv4 is obsoleted for this type, please use OSSupportsIPv4 instead. http://go.microsoft.com/fwlink/?linkid=14202'
System.Net/Dns.cs(396,11): warning CS0618: 'Dns.GetHostByName(string)' is obsolete: 'Use GetHostEntry instead'
CompileUplevel.cs(943,25): warning CS0618: 'CodeDomProvider.CreateGenerator()' is obsolete: 'ICodeGenerator is obsolete'
System.Diagnostics/Win32EventLog.cs(724,51): warning CS0618: 'WaitHandle.Handle' is obsolete: 'Use the SafeWaitHandle property instead.'
System.Diagnostics/FileVersionInfo.cs(148,9): warning CS0618: 'SecurityManager.SecurityEnabled' is obsolete: 'The security manager cannot be turned off on MS runtime'
System.Diagnostics/FileVersionInfo.cs(282,8): warning CS0618: 'SecurityManager.SecurityEnabled' is obsolete: 'The security manager cannot be turned off on MS runtime'
System.Diagnostics/EventLogEntry.cs(172,6): warning CS0618: 'EventLogEntry.EventID' is obsolete: 'Use InstanceId'
/Users/alexander/dev/mono/mcs/class/referencesource/System/net/System/Net/Internal.cs(312,20): warning CS0618: 'Dns.GetHostByName(string)' is obsolete: 'Use GetHostEntry instead'
System.Diagnostics/Process.cs(758,39): warning CS0618: 'FileStream.FileStream(IntPtr, FileAccess, bool, int)' is obsolete: 'Use FileStream(SafeFileHandle handle, FileAccess access, int bufferSize) instead'
System.Diagnostics/Process.cs(768,40): warning CS0618: 'FileStream.FileStream(IntPtr, FileAccess, bool, int)' is obsolete: 'Use FileStream(SafeFileHandle handle, FileAccess access, int bufferSize) instead'
System.Diagnostics/Process.cs(776,39): warning CS0618: 'FileStream.FileStream(IntPtr, FileAccess, bool, int)' is obsolete: 'Use FileStream(SafeFileHandle handle, FileAccess access, int bufferSize) instead'
System.Net/HttpWebRequest.cs(137,23): warning CS0618: 'ConfigurationSettings.GetConfig(string)' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.GetSection'
System.Net/FtpWebRequest.cs(116,17): warning CS0618: 'GlobalProxySelection' is obsolete: 'This class has been deprecated. Please use WebRequest.DefaultWebProxy instead to access and set the global default proxy. Use 'null' instead of GetEmptyWebProxy. http://go.microsoft.com/fwlink/?linkid=14202'
System.Net/Dns.cs(323,11): warning CS0618: 'Socket.SupportsIPv6' is obsolete: 'SupportsIPv6 is obsoleted for this type, please use OSSupportsIPv6 instead. http://go.microsoft.com/fwlink/?linkid=14202'
System.Net/Dns.cs(324,11): warning CS0618: 'Socket.SupportsIPv4' is obsolete: 'SupportsIPv4 is obsoleted for this type, please use OSSupportsIPv4 instead. http://go.microsoft.com/fwlink/?linkid=14202'
System.Net/Dns.cs(396,11): warning CS0618: 'Dns.GetHostByName(string)' is obsolete: 'Use GetHostEntry instead'
System.Net/AuthenticationManager.cs(72,5): warning CS0618: 'ConfigurationSettings.GetConfig(string)' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.GetSection'
System.Diagnostics/Win32EventLog.cs(724,51): warning CS0618: 'WaitHandle.Handle' is obsolete: 'Use the SafeWaitHandle property instead.'
System.Diagnostics/FileVersionInfo.cs(148,9): warning CS0618: 'SecurityManager.SecurityEnabled' is obsolete: 'The security manager cannot be turned off on MS runtime'
System.Diagnostics/FileVersionInfo.cs(282,8): warning CS0618: 'SecurityManager.SecurityEnabled' is obsolete: 'The security manager cannot be turned off on MS runtime'
System.Diagnostics/EventLogEntry.cs(172,6): warning CS0618: 'EventLogEntry.EventID' is obsolete: 'Use InstanceId'
System.Diagnostics/Process.cs(758,39): warning CS0618: 'FileStream.FileStream(IntPtr, FileAccess, bool, int)' is obsolete: 'Use FileStream(SafeFileHandle handle, FileAccess access, int bufferSize) instead'
System.Diagnostics/Process.cs(768,40): warning CS0618: 'FileStream.FileStream(IntPtr, FileAccess, bool, int)' is obsolete: 'Use FileStream(SafeFileHandle handle, FileAccess access, int bufferSize) instead'
System.Diagnostics/Process.cs(776,39): warning CS0618: 'FileStream.FileStream(IntPtr, FileAccess, bool, int)' is obsolete: 'Use FileStream(SafeFileHandle handle, FileAccess access, int bufferSize) instead'
/Users/alexander/dev/mono/mcs/class/referencesource/System/net/System/Net/Internal.cs(312,20): warning CS0618: 'Dns.GetHostByName(string)' is obsolete: 'Use GetHostEntry instead'
System.Net/HttpWebRequest.cs(137,23): warning CS0618: 'ConfigurationSettings.GetConfig(string)' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.GetSection'
System.Net/FtpWebRequest.cs(116,17): warning CS0618: 'GlobalProxySelection' is obsolete: 'This class has been deprecated. Please use WebRequest.DefaultWebProxy instead to access and set the global default proxy. Use 'null' instead of GetEmptyWebProxy. http://go.microsoft.com/fwlink/?linkid=14202'
System.Net/EndPointManager.cs(89,27): warning CS0618: 'Dns.GetHostByName(string)' is obsolete: 'Use GetHostEntry instead'
System.Net/Dns.cs(323,11): warning CS0618: 'Socket.SupportsIPv6' is obsolete: 'SupportsIPv6 is obsoleted for this type, please use OSSupportsIPv6 instead. http://go.microsoft.com/fwlink/?linkid=14202'
System.Net/Dns.cs(324,11): warning CS0618: 'Socket.SupportsIPv4' is obsolete: 'SupportsIPv4 is obsoleted for this type, please use OSSupportsIPv4 instead. http://go.microsoft.com/fwlink/?linkid=14202'
System.Net/Dns.cs(396,11): warning CS0618: 'Dns.GetHostByName(string)' is obsolete: 'Use GetHostEntry instead'
System.Net/AuthenticationManager.cs(72,5): warning CS0618: 'ConfigurationSettings.GetConfig(string)' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.GetSection'
System.Diagnostics/Win32EventLog.cs(724,51): warning CS0618: 'WaitHandle.Handle' is obsolete: 'Use the SafeWaitHandle property instead.'
System.Diagnostics/FileVersionInfo.cs(148,9): warning CS0618: 'SecurityManager.SecurityEnabled' is obsolete: 'The security manager cannot be turned off on MS runtime'
System.Diagnostics/FileVersionInfo.cs(282,8): warning CS0618: 'SecurityManager.SecurityEnabled' is obsolete: 'The security manager cannot be turned off on MS runtime'
System.Diagnostics/EventLogEntry.cs(172,6): warning CS0618: 'EventLogEntry.EventID' is obsolete: 'Use InstanceId'
System.Diagnostics/Process.cs(758,39): warning CS0618: 'FileStream.FileStream(IntPtr, FileAccess, bool, int)' is obsolete: 'Use FileStream(SafeFileHandle handle, FileAccess access, int bufferSize) instead'
System.Diagnostics/Process.cs(768,40): warning CS0618: 'FileStream.FileStream(IntPtr, FileAccess, bool, int)' is obsolete: 'Use FileStream(SafeFileHandle handle, FileAccess access, int bufferSize) instead'
System.Diagnostics/Process.cs(776,39): warning CS0618: 'FileStream.FileStream(IntPtr, FileAccess, bool, int)' is obsolete: 'Use FileStream(SafeFileHandle handle, FileAccess access, int bufferSize) instead'
System.Net/HttpWebRequest.cs(137,23): warning CS0618: 'ConfigurationSettings.GetConfig(string)' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.GetSection'
/Users/alexander/dev/mono/mcs/class/referencesource/System/net/System/Net/Internal.cs(312,20): warning CS0618: 'Dns.GetHostByName(string)' is obsolete: 'Use GetHostEntry instead'
System.Net/FtpWebRequest.cs(116,17): warning CS0618: 'GlobalProxySelection' is obsolete: 'This class has been deprecated. Please use WebRequest.DefaultWebProxy instead to access and set the global default proxy. Use 'null' instead of GetEmptyWebProxy. http://go.microsoft.com/fwlink/?linkid=14202'
System.Net/EndPointManager.cs(89,27): warning CS0618: 'Dns.GetHostByName(string)' is obsolete: 'Use GetHostEntry instead'
System.Net/Dns.cs(323,11): warning CS0618: 'Socket.SupportsIPv6' is obsolete: 'SupportsIPv6 is obsoleted for this type, please use OSSupportsIPv6 instead. http://go.microsoft.com/fwlink/?linkid=14202'
System.Net/Dns.cs(324,11): warning CS0618: 'Socket.SupportsIPv4' is obsolete: 'SupportsIPv4 is obsoleted for this type, please use OSSupportsIPv4 instead. http://go.microsoft.com/fwlink/?linkid=14202'
System.Net/Dns.cs(396,11): warning CS0618: 'Dns.GetHostByName(string)' is obsolete: 'Use GetHostEntry instead'
System.DirectoryServices/DirectoryEntry.cs(519,4): warning CS0618: 'RecommendedAsConfigurableAttribute' is obsolete: 'Use System.ComponentModel.SettingsBindableAttribute instead to work with the new settings model.'
System.DirectoryServices/DirectorySearcher.cs(168,4): warning CS0618: 'RecommendedAsConfigurableAttribute' is obsolete: 'Use System.ComponentModel.SettingsBindableAttribute instead to work with the new settings model.'
System.DirectoryServices/DirectorySearcher.cs(315,4): warning CS0618: 'RecommendedAsConfigurableAttribute' is obsolete: 'Use System.ComponentModel.SettingsBindableAttribute instead to work with the new settings model.'
System.DirectoryServices/DirectoryEntry.cs(608,57): warning CS0618: 'ConfigurationSettings.GetConfig(string)' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.GetSection'
System.DirectoryServices/DirectoryEntry.cs(627,57): warning CS0618: 'ConfigurationSettings.GetConfig(string)' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.GetSection'
System.Runtime.Remoting.MetadataServices/MetaData.cs(64,25): warning CS0618: 'CodeDomProvider.CreateCompiler()' is obsolete: 'ICodeCompiler is obsolete'
System.Runtime.Remoting.MetadataServices/MetaData.cs(78,25): warning CS0618: 'CodeDomProvider.CreateCompiler()' is obsolete: 'ICodeCompiler is obsolete'
System.Runtime.Remoting.Channels/ChannelCore.cs(60,10): warning CS0618: 'Assembly.LoadWithPartialName(string)' is obsolete: 'This method has been deprecated. Please use Assembly.Load() instead. http://go.microsoft.com/fwlink/?linkid=14202'
System.Runtime.Remoting.Channels.Tcp/TcpServerChannel.cs(72,24): warning CS0618: 'Dns.Resolve(string)' is obsolete: 'Use GetHostEntry instead'
System.Runtime.Remoting.Channels.Tcp/TcpServerChannel.cs(83,13): warning CS0618: 'Dns.GetHostByName(string)' is obsolete: 'Use GetHostEntry instead'
System.Runtime.Remoting.Channels.Ipc.Win32/IpcChannelHelper.cs(64,37): warning CS0618: 'Path.InvalidPathChars' is obsolete: 'see GetInvalidPathChars and GetInvalidFileNameChars methods.'
System.Runtime.Remoting.Channels.Http/HttpRemotingHandlerFactory.cs(67,6): warning CS0618: 'RemotingConfiguration.Configure(string)' is obsolete: 'Use Configure(String,Boolean)'
System.Runtime.Remoting.Channels.Http/HttpRemotingHandlerFactory.cs(92,6): warning CS0618: 'ChannelServices.RegisterChannel(IChannel)' is obsolete: 'Use RegisterChannel(IChannel,Boolean)'
System.Runtime.Remoting.Channels.Http/HttpServerChannel.cs(129,31): warning CS0618: 'Dns.Resolve(string)' is obsolete: 'Use GetHostEntry instead'
System.Runtime.Remoting.Channels.Http/HttpServerChannel.cs(137,30): warning CS0618: 'Dns.GetHostByName(string)' is obsolete: 'Use GetHostEntry instead'
Commons.Xml.Nvdl/NvdlXsdSupport.cs(24,5): warning CS0618: 'XmlSchema.Compile(ValidationEventHandler, XmlResolver)' is obsolete: 'Use System.Xml.Schema.XmlSchemaSet for schema compilation and validation. http://go.microsoft.com/fwlink/?linkid=14202'
Commons.Xml.Relaxng/XsdDatatypeProvider.cs(194,4): warning CS0618: 'XmlSchema.Compile(ValidationEventHandler)' is obsolete: 'Use System.Xml.Schema.XmlSchemaSet for schema compilation and validation. http://go.microsoft.com/fwlink/?linkid=14202'
Commons.Xml.Relaxng/XsdDatatypeProvider.cs(217,4): warning CS0618: 'XmlValidatingReader' is obsolete: 'Use XmlReader created by XmlReader.Create() method using appropriate XmlReaderSettings instead. http://go.microsoft.com/fwlink/?linkid=14202'
Commons.Xml.Relaxng/XsdDatatypeProvider.cs(217,32): warning CS0618: 'XmlValidatingReader' is obsolete: 'Use XmlReader created by XmlReader.Create() method using appropriate XmlReaderSettings instead. http://go.microsoft.com/fwlink/?linkid=14202'
Commons.Xml.Relaxng/XsdDatatypeProvider.cs(87,4): warning CS0618: 'XmlSchema.Compile(ValidationEventHandler)' is obsolete: 'Use System.Xml.Schema.XmlSchemaSet for schema compilation and validation. http://go.microsoft.com/fwlink/?linkid=14202'
Commons.Xml.Relaxng/XsdDatatypeProvider.cs(89,56): warning CS0618: 'XmlSchemaElement.ElementType' is obsolete: 'This property has been deprecated. Please use ElementSchemaType property that returns a strongly typed element type. http://go.microsoft.com/fwlink/?linkid=14202'
Commons.Xml.Relaxng.Inference/RelaxngInference.cs(896,5): warning CS0618: 'XmlConvert.ToDateTime(string)' is obsolete: 'Use XmlConvert.ToDateTime() that takes in XmlDateTimeSerializationMode'
Assembly/AssemblyInfo.cs(49,30): warning CS0618: 'SecurityCriticalScope' is obsolete: 'SecurityCriticalScope is only used for .NET 2.0 transparency compatibility.'
Assembly/AssemblyInfo.cs(65,30): warning CS0618: 'SecurityCriticalScope' is obsolete: 'SecurityCriticalScope is only used for .NET 2.0 transparency compatibility.'
Assembly/AssemblyInfo.cs(64,30): warning CS0618: 'SecurityCriticalScope' is obsolete: 'SecurityCriticalScope is only used for .NET 2.0 transparency compatibility.'
Assembly/AssemblyInfo.cs(63,30): warning CS0618: 'SecurityCriticalScope' is obsolete: 'SecurityCriticalScope is only used for .NET 2.0 transparency compatibility.'
System.Xaml/TypeExtensionMethods.cs(152,13): warning CS0618: 'XmlConvert.ToString(DateTime)' is obsolete: 'Use XmlConvert.ToString() that takes in XmlDateTimeSerializationMode'
System.Xaml/XamlSchemaContext.cs(239,11): warning CS0618: 'Assembly.LoadWithPartialName(string)' is obsolete: 'This method has been deprecated. Please use Assembly.Load() instead. http://go.microsoft.com/fwlink/?linkid=14202'
System.Security.RightsManagement/ContentGrant.cs(31,21): warning CS0618: 'SecurityCriticalScope' is obsolete: 'SecurityCriticalScope is only used for .NET 2.0 transparency compatibility.'
System.Security.RightsManagement/ContentUser.cs(31,21): warning CS0618: 'SecurityCriticalScope' is obsolete: 'SecurityCriticalScope is only used for .NET 2.0 transparency compatibility.'
System.IO.Packaging/PackageDigitalSignature.cs(94,4): warning CS0618: 'SecurityTreatAsSafeAttribute' is obsolete: 'SecurityTreatAsSafe is only used for .NET 2.0 transparency compatibility.  Please use the SecuritySafeCriticalAttribute instead.'
System.Security.RightsManagement/CryptoProvider.cs(32,21): warning CS0618: 'SecurityCriticalScope' is obsolete: 'SecurityCriticalScope is only used for .NET 2.0 transparency compatibility.'
System.Security.RightsManagement/LocalizedNameDescriptionPair.cs(31,21): warning CS0618: 'SecurityCriticalScope' is obsolete: 'SecurityCriticalScope is only used for .NET 2.0 transparency compatibility.'
System.Security.RightsManagement/PublishLicense.cs(31,21): warning CS0618: 'SecurityCriticalScope' is obsolete: 'SecurityCriticalScope is only used for .NET 2.0 transparency compatibility.'
System.Security.RightsManagement/SecureEnvironment.cs(32,21): warning CS0618: 'SecurityCriticalScope' is obsolete: 'SecurityCriticalScope is only used for .NET 2.0 transparency compatibility.'
System.Security.RightsManagement/UnsignedPublishLicense.cs(32,21): warning CS0618: 'SecurityCriticalScope' is obsolete: 'SecurityCriticalScope is only used for .NET 2.0 transparency compatibility.'
System.Security.RightsManagement/UseLicense.cs(32,21): warning CS0618: 'SecurityCriticalScope' is obsolete: 'SecurityCriticalScope is only used for .NET 2.0 transparency compatibility.'
System.ServiceModel.Discovery/UdpDiscoveryEndpoint.cs(43,17): warning CS0618: 'Socket.SupportsIPv4' is obsolete: 'SupportsIPv4 is obsoleted for this type, please use OSSupportsIPv4 instead. http://go.microsoft.com/fwlink/?linkid=14202'
System.ServiceModel.Discovery/UdpAnnouncementEndpoint.cs(43,17): warning CS0618: 'Socket.SupportsIPv4' is obsolete: 'SupportsIPv4 is obsoleted for this type, please use OSSupportsIPv4 instead. http://go.microsoft.com/fwlink/?linkid=14202'
System.ServiceModel/WebHttpBinding.cs(63,11): warning CS0618: 'ConfigurationException.ConfigurationException(string)' is obsolete: 'This class is obsolete.  Use System.Configuration.ConfigurationErrorsException'
Microsoft.Build.Tasks/CodeTaskFactory.cs(214,18): warning CS0618: 'Assembly.LoadWithPartialName(string)' is obsolete: 'This method has been deprecated. Please use Assembly.Load() instead. http://go.microsoft.com/fwlink/?linkid=14202'
Manager.cs(55,31): warning CS0618: 'CaseInsensitiveHashCodeProvider' is obsolete: 'Please use StringComparer instead.'
Manager.cs(55,16): warning CS0618: 'Hashtable.Hashtable(IHashCodeProvider, IComparer)' is obsolete: 'Please use Hashtable(IEqualityComparer) instead.'
Client/System/Data/Services/Client/ALinq/InputReferenceExpression.cs(25,13): warning CS0618: 'Expression.Expression(ExpressionType, Type)' is obsolete: 'use a different constructor that does not take ExpressionType. Then override NodeType and Type properties to provide the values that would be specified to this constructor.'
Client/System/Data/Services/Client/ALinq/QueryOptionExpression.cs(20,76): warning CS0618: 'Expression.Expression(ExpressionType, Type)' is obsolete: 'use a different constructor that does not take ExpressionType. Then override NodeType and Type properties to provide the values that would be specified to this constructor.'
Client/System/Data/Services/Client/ALinq/ResourceExpression.cs(51,13): warning CS0618: 'Expression.Expression(ExpressionType, Type)' is obsolete: 'use a different constructor that does not take ExpressionType. Then override NodeType and Type properties to provide the values that would be specified to this constructor.'
CompileUplevel.cs(943,25): warning CS0618: 'CodeDomProvider.CreateGenerator()' is obsolete: 'ICodeGenerator is obsolete'
mono-service.cs(135,28): warning CS0618: 'AppDomain.CreateInstanceAndUnwrap(string, string, bool, BindingFlags, Binder, object[], CultureInfo, object[], Evidence)' is obsolete: 'Use an overload that does not take an Evidence parameter'
mono-service.cs(207,11): warning CS0618: 'AppDomain.ExecuteAssembly(string, Evidence, string[])' is obsolete: 'Use an overload that does not take an Evidence parameter'
NewMonoXSD.cs(119,47): warning CS0618: 'Path.InvalidPathChars' is obsolete: 'see GetInvalidPathChars and GetInvalidFileNameChars methods.'
NewMonoXSD.cs(405,30): warning CS0618: 'XmlSchema.Compile(ValidationEventHandler)' is obsolete: 'Use System.Xml.Schema.XmlSchemaSet for schema compilation and validation. http://go.microsoft.com/fwlink/?linkid=14202'
NewMonoXSD.cs(432,25): warning CS0618: 'CodeDomProvider.CreateGenerator()' is obsolete: 'ICodeGenerator is obsolete'
NewMonoXSD.cs(466,25): warning CS0618: 'CodeDomProvider.CreateGenerator()' is obsolete: 'ICodeGenerator is obsolete'
NewMonoXSD.cs(468,4): warning CS0618: 'TypedDataSetGenerator' is obsolete: 'TypedDataSetGenerator class will be removed in a future release. Please use System.Data.Design.TypedDataSetGenerator in System.Design.dll.'
MonoWSDL2.cs(285,31): warning CS0618: 'CodeDomProvider.CreateGenerator()' is obsolete: 'ICodeGenerator is obsolete'
MonoWSDL2.cs(464,60): warning CS0618: 'Path.InvalidPathChars' is obsolete: 'see GetInvalidPathChars and GetInvalidFileNameChars methods.'
xmltool.cs(181,4): warning CS0618: 'XmlSchema.Compile(ValidationEventHandler)' is obsolete: 'Use System.Xml.Schema.XmlSchemaSet for schema compilation and validation. http://go.microsoft.com/fwlink/?linkid=14202'
xmltool.cs(184,5): warning CS0618: 'XmlValidatingReader' is obsolete: 'Use XmlReader created by XmlReader.Create() method using appropriate XmlReaderSettings instead. http://go.microsoft.com/fwlink/?linkid=14202'
xmltool.cs(184,35): warning CS0618: 'XmlValidatingReader' is obsolete: 'Use XmlReader created by XmlReader.Create() method using appropriate XmlReaderSettings instead. http://go.microsoft.com/fwlink/?linkid=14202'
xmltool.cs(208,5): warning CS0618: 'XmlValidatingReader' is obsolete: 'Use XmlReader created by XmlReader.Create() method using appropriate XmlReaderSettings instead. http://go.microsoft.com/fwlink/?linkid=14202'
xmltool.cs(208,35): warning CS0618: 'XmlValidatingReader' is obsolete: 'Use XmlReader created by XmlReader.Create() method using appropriate XmlReaderSettings instead. http://go.microsoft.com/fwlink/?linkid=14202'
xmltool.cs(220,4): warning CS0618: 'XslTransform' is obsolete: 'This class has been deprecated. Please use System.Xml.Xsl.XslCompiledTransform instead. http://go.microsoft.com/fwlink/?linkid=14202'
xmltool.cs(220,25): warning CS0618: 'XslTransform' is obsolete: 'This class has been deprecated. Please use System.Xml.Xsl.XslCompiledTransform instead. http://go.microsoft.com/fwlink/?linkid=14202'
mono-shlib-cop.cs(250,9): warning CS0618: 'Assembly.LoadWithPartialName(string)' is obsolete: 'This method has been deprecated. Please use Assembly.Load() instead. http://go.microsoft.com/fwlink/?linkid=14202'
sgen.cs(230,105): warning CS0618: 'Path.InvalidPathChars' is obsolete: 'see GetInvalidPathChars and GetInvalidFileNameChars methods.'
Mono.Cecil/HashCodeProvider.cs(33,43): warning CS0618: 'IHashCodeProvider' is obsolete: 'Please use IEqualityComparer instead.'
Mono.Cecil.Metadata/BlobHeap.cs(57,36): warning CS0618: 'IHashCodeProvider' is obsolete: 'Please use IEqualityComparer instead.'
Mono.Cecil/ExternTypeCollection.cs(85,60): warning CS0618: 'NameObjectCollectionBase.NameObjectCollectionBase(IHashCodeProvider, IComparer)' is obsolete: 'Please use NameObjectCollectionBase(IEqualityComparer) instead.'
Mono.Cecil/TypeDefinitionCollection.cs(85,64): warning CS0618: 'NameObjectCollectionBase.NameObjectCollectionBase(IHashCodeProvider, IComparer)' is obsolete: 'Please use NameObjectCollectionBase(IEqualityComparer) instead.'
Mono.Cecil/TypeReferenceCollection.cs(85,63): warning CS0618: 'NameObjectCollectionBase.NameObjectCollectionBase(IHashCodeProvider, IComparer)' is obsolete: 'Please use NameObjectCollectionBase(IEqualityComparer) instead.'
Mono.Cecil.Cil/SymbolStoreHelper.cs(67,29): warning CS0618: 'Assembly.LoadWithPartialName(string)' is obsolete: 'This method has been deprecated. Please use Assembly.Load() instead. http://go.microsoft.com/fwlink/?linkid=14202'
Mono.Cecil.Metadata/MetadataWriter.cs(134,18): warning CS0618: 'Hashtable.Hashtable(IHashCodeProvider, IComparer)' is obsolete: 'Please use Hashtable(IEqualityComparer) instead.'
Mono.Documentation/mdoc.cs(51,31): warning CS0618: 'MDocPreserve' is obsolete: 'This functionality is no longer supported.'
mod.cs(27,23): warning CS0618: 'RootTree.RenderUrl(string, out Node)' is obsolete: 'Use the RenderUrl variant accepting a generator'
/Users/alexander/dev/mono/external/ikdasm/Disassembler.cs(2222,26): warning CS0618: 'SecurityAction.RequestMinimum' is obsolete: 'This requests should not be used'
/Users/alexander/dev/mono/external/ikdasm/Disassembler.cs(2225,26): warning CS0618: 'SecurityAction.RequestRefuse' is obsolete: 'This requests should not be used'
/Users/alexander/dev/mono/external/ikdasm/Disassembler.cs(2228,26): warning CS0618: 'SecurityAction.RequestOptional' is obsolete: 'This requests should not be used'
Microsoft.Build.Tasks/CodeTaskFactory.cs(214,18): warning CS0618: 'Assembly.LoadWithPartialName(string)' is obsolete: 'This method has been deprecated. Please use Assembly.Load() instead. http://go.microsoft.com/fwlink/?linkid=14202'
Microsoft.Build.Tasks/CodeTaskFactory.cs(214,18): warning CS0618: 'Assembly.LoadWithPartialName(string)' is obsolete: 'This method has been deprecated. Please use Assembly.Load() instead. http://go.microsoft.com/fwlink/?linkid=14202'

This comment has been minimized.

Copy link
@marek-safar

marek-safar Jan 3, 2017

Author Member

Many of them are duplicates so there is ~100 warnings which should be reasonable number to fix by updating the code or using pragma warning

This comment has been minimized.

Copy link
@akoeplinger
TEST_LIB_REFS = $(MONO_SECURITY) System.Data System.Xml System.Core
endif

Expand All @@ -42,8 +48,6 @@ REFERENCE_SOURCES_FLAGS += -d:MONO_FEATURE_PROCESS_START
TEST_MCS_FLAGS += -d:MONO_FEATURE_PROCESS_START
endif

LIB_MCS_FLAGS = -d:CONFIGURATION_2_0 $(REFERENCE_SOURCES_FLAGS) -unsafe $(RESOURCE_FILES:%=-resource:%) -nowarn:436

ifndef PROFILE_DISABLE_BTLS
ifdef HAVE_BTLS

Expand All @@ -69,15 +73,6 @@ endif

TXT_RESOURCE_STRINGS = ../referencesource/System/System.txt

#
# MOBILE_PROFILE needs SECURITY_DEP
#
ifdef MOBILE_PROFILE
LIB_MCS_FLAGS += -d:INSIDE_SYSTEM -d:SECURITY_DEP -nowarn:618,1635
else
EXTERN_ALIAS_FLAGS = -d:MONO_SECURITY_ALIAS
endif

#
# Flags used to build the secxml version of System.
#
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
// Copyright 2015 Xamarin Inc. All rights reserved.
#if SECURITY_DEP
using System;

#if MONO_SECURITY_ALIAS
extern alias MonoSecurity;
using MSI = MonoSecurity::Mono.Security.Interface;
#else
using MSI = Mono.Security.Interface;
#endif

namespace Mono.Net.Security
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
// Copyright 2015 Xamarin Inc. All rights reserved.
#if SECURITY_DEP
using System;

#if MONO_SECURITY_ALIAS
extern alias MonoSecurity;
using MSI = MonoSecurity::Mono.Security.Interface;
#else
using MSI = Mono.Security.Interface;
#endif

#if MONO_FEATURE_BTLS
using Mono.Btls;
#endif

using System;

namespace Mono.Net.Security
{
static partial class MonoTlsProviderFactory
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,30 +36,32 @@ public class SslStream : AuthenticatedStream
const string EXCEPTION_MESSAGE = "System.Net.Security.SslStream is not supported on the current platform.";

public SslStream (Stream innerStream)
: this (innerStream, false, null, null)
: this (innerStream, false)
{
}

public SslStream (Stream innerStream, bool leaveInnerStreamOpen)
: this (innerStream, leaveInnerStreamOpen, null, null)
: base (innerStream, leaveInnerStreamOpen)
{
throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
}

public SslStream (Stream innerStream, bool leaveInnerStreamOpen, RemoteCertificateValidationCallback userCertificateValidationCallback)
: this (innerStream, leaveInnerStreamOpen, userCertificateValidationCallback, null)
: this (innerStream, leaveInnerStreamOpen)
{
}

#if SECURITY_DEP
public SslStream (Stream innerStream, bool leaveInnerStreamOpen, RemoteCertificateValidationCallback userCertificateValidationCallback, LocalCertificateSelectionCallback userCertificateSelectionCallback)
: base (innerStream, leaveInnerStreamOpen)
: this (innerStream, leaveInnerStreamOpen)
{
throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
}

public SslStream (Stream innerStream, bool leaveInnerStreamOpen, RemoteCertificateValidationCallback userCertificateValidationCallback, LocalCertificateSelectionCallback userCertificateSelectionCallback, EncryptionPolicy encryptionPolicy)
: this (innerStream, leaveInnerStreamOpen, userCertificateValidationCallback, userCertificateSelectionCallback)
: this (innerStream, leaveInnerStreamOpen)
{
}
#endif

public virtual void AuthenticateAsClient (string targetHost)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,12 @@ public AuthenticationSchemes AuthenticationSchemes {
set { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
}

#if SECURITY_DEP
public AuthenticationSchemeSelector AuthenticationSchemeSelectorDelegate {
get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
set { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
}
#endif

public bool IgnoreWriteExceptions {
get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public HttpListenerResponse Response {
public IPrincipal User {
get { throw new PlatformNotSupportedException (EXCEPTION_MESSAGE); }
}

#if SECURITY_DEP
public Task<HttpListenerWebSocketContext> AcceptWebSocketAsync (string subProtocol)
{
throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
Expand All @@ -69,5 +69,6 @@ public Task<HttpListenerWebSocketContext> AcceptWebSocketAsync (string subProtoc
{
throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
}
#endif
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -699,7 +699,7 @@ private bool IsSignedWith (X509Certificate2 signed, AsymmetricAlgorithm pubkey)
if (pubkey == null)
return false;
// Sadly X509Certificate2 doesn't expose the signature nor the tbs (to be signed) structure
MX.X509Certificate mx = signed.MonoCertificate;
var mx = signed.MonoCertificate;
return (mx.VerifySignature (pubkey));
}

Expand All @@ -725,7 +725,7 @@ static string GetAuthorityKeyIdentifier (MX.X509Extension ext)
{
if (ext == null)
return String.Empty;
MX.Extensions.AuthorityKeyIdentifierExtension aki = new MX.Extensions.AuthorityKeyIdentifierExtension (ext);
var aki = new MX.Extensions.AuthorityKeyIdentifierExtension (ext);
byte[] id = aki.Identifier;
if (id == null)
return String.Empty;
Expand Down
Loading

0 comments on commit 208dd1e

Please sign in to comment.