Make corefx exceptions serializable and add typeforwards (dotnet/corefx#24427)
authorViktor Hofer <viktor.hofer@microsoft.com>
Fri, 27 Oct 2017 16:00:52 +0000 (18:00 +0200)
committerGitHub <noreply@github.com>
Fri, 27 Oct 2017 16:00:52 +0000 (18:00 +0200)
commitfcc00e81f3f7177dfcddddbe87e454bb665eeda7
treeca7e4b2f71495c3fcfbc941ae339cc8951d088e8
parentad3a27ae621782778402515ef8d3049c90c4568b
Make corefx exceptions serializable and add typeforwards (dotnet/corefx#24427)

* Add serializable attribute and typeforward and adding serialization impl
* Expose ZLibException in impl assembly
* Remove deserialization negative tests
* Adding tests for exceptions
* Adding SqlError data to base exception data table
* System Data Facade
* Add netfx471 blob diffs for Hashtable and ListDictionary
* Build Microsoft.NETCore.App.deps.json after manual shims
* Disable currently failing uap/uapaot tests because of shim assembly load errors

Commit migrated from https://github.com/dotnet/corefx/commit/e3f74deb999571d3f34a6b2b8011caebcf06dbfc
112 files changed:
src/libraries/Common/src/System/Net/NetworkInformation/NetworkInformationException.cs
src/libraries/Microsoft.CSharp/src/Microsoft/CSharp/RuntimeBinder/RuntimeBinderException.cs
src/libraries/Microsoft.CSharp/src/Microsoft/CSharp/RuntimeBinder/RuntimeBinderInternalCompilerException.cs
src/libraries/Microsoft.CSharp/tests/Microsoft.CSharp.Tests.csproj
src/libraries/Microsoft.CSharp/tests/RuntimeBinderExceptionTests.cs
src/libraries/Microsoft.CSharp/tests/RuntimeBinderInternalCompilerExceptionTests.cs
src/libraries/Microsoft.Win32.Primitives/src/System/ComponentModel/Win32Exception.cs
src/libraries/Microsoft.Win32.Primitives/tests/Win32ExceptionTests.cs
src/libraries/SharedFrameworkValidation/SharedFrameworkValidation.proj
src/libraries/System.ComponentModel.Annotations/src/System/ComponentModel/DataAnnotations/ValidationException.cs
src/libraries/System.ComponentModel.Annotations/tests/System.ComponentModel.Annotations.Tests.csproj
src/libraries/System.ComponentModel.Annotations/tests/ValidationExceptionTests.cs
src/libraries/System.ComponentModel.Primitives/src/System/ComponentModel/InvalidEnumArgumentException.cs
src/libraries/System.ComponentModel.Primitives/tests/InvalidEnumArgumentExceptionTests.cs
src/libraries/System.ComponentModel.TypeConverter/src/System/ComponentModel/Design/CheckoutException.cs
src/libraries/System.ComponentModel.TypeConverter/src/System/ComponentModel/InvalidAsynchronousStateException.cs
src/libraries/System.ComponentModel.TypeConverter/src/System/ComponentModel/LicenseException.cs
src/libraries/System.ComponentModel.TypeConverter/src/System/ComponentModel/WarningException.cs
src/libraries/System.Configuration.ConfigurationManager/src/System/Configuration/ConfigurationErrorsException.cs
src/libraries/System.Configuration.ConfigurationManager/src/System/Configuration/ConfigurationException.cs
src/libraries/System.Configuration.ConfigurationManager/src/System/Configuration/Provider/ProviderException.cs
src/libraries/System.Configuration.ConfigurationManager/src/System/Configuration/SettingsPropertyIsReadOnlyException.cs
src/libraries/System.Configuration.ConfigurationManager/src/System/Configuration/SettingsPropertyNotFoundException.cs
src/libraries/System.Configuration.ConfigurationManager/src/System/Configuration/SettingsPropertyWrongTypeException.cs
src/libraries/System.Data.Common/src/System/Data/Common/DbException.cs
src/libraries/System.Data.Common/src/System/Data/DBConcurrencyException.cs
src/libraries/System.Data.Common/src/System/Data/DataException.cs
src/libraries/System.Data.Common/src/System/Data/Filter/FilterException.cs
src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLUtility.cs
src/libraries/System.Data.Common/src/System/Data/StrongTypingException.cs
src/libraries/System.Data.Odbc/src/System/Data/Odbc/Odbc32.cs
src/libraries/System.Data.Odbc/src/System/Data/Odbc/OdbcError.cs
src/libraries/System.Data.Odbc/src/System/Data/Odbc/OdbcErrorCollection.cs
src/libraries/System.Data.Odbc/src/System/Data/Odbc/OdbcException.cs
src/libraries/System.Data.SqlClient/src/System/Data/OperationAbortedException.cs
src/libraries/System.Data.SqlClient/src/System/Data/SqlClient/SqlException.cs
src/libraries/System.DirectoryServices.AccountManagement/src/System/DirectoryServices/AccountManagement/exceptions.cs
src/libraries/System.DirectoryServices.Protocols/src/System/DirectoryServices/Protocols/common/DirectoryException.cs
src/libraries/System.DirectoryServices.Protocols/src/System/DirectoryServices/Protocols/ldap/LdapException.cs
src/libraries/System.DirectoryServices/src/System/DirectoryServices/ActiveDirectory/Exception.cs
src/libraries/System.DirectoryServices/src/System/DirectoryServices/DirectoryServicesCOMException.cs
src/libraries/System.Drawing.Common/src/System.Drawing.Common.csproj
src/libraries/System.Drawing.Common/src/System/Drawing/Printing/InvalidPrinterException.Core.cs [new file with mode: 0644]
src/libraries/System.Drawing.Common/src/System/Drawing/Printing/InvalidPrinterException.NotSerializable.cs [deleted file]
src/libraries/System.Drawing.Common/src/System/Drawing/Printing/InvalidPrinterException.Serializable.cs
src/libraries/System.Drawing.Common/src/System/Drawing/Printing/InvalidPrinterException.cs
src/libraries/System.IO.Compression/src/System.IO.Compression.csproj
src/libraries/System.IO.Compression/src/System/IO/Compression/DeflateZLib/ZLibException.cs
src/libraries/System.IO.Compression/src/System/IO/Compression/ZLibException.Serialization.cs [deleted file]
src/libraries/System.IO.FileSystem.DriveInfo/src/System/IO/DriveInfo.cs
src/libraries/System.IO.FileSystem.DriveInfo/src/System/IO/DriveNotFoundException.cs
src/libraries/System.IO.FileSystem.Watcher/src/System/IO/InternalBufferOverflowException.cs
src/libraries/System.IO.IsolatedStorage/src/System.IO.IsolatedStorage.csproj
src/libraries/System.IO.IsolatedStorage/src/System/IO/IsolatedStorage/IsolatedStorageException.Serialization.cs [deleted file]
src/libraries/System.IO.IsolatedStorage/src/System/IO/IsolatedStorage/IsolatedStorageException.cs
src/libraries/System.IO.Packaging/ref/System.IO.Packaging.Serialization.cs [new file with mode: 0644]
src/libraries/System.IO.Packaging/ref/System.IO.Packaging.csproj
src/libraries/System.IO.Packaging/src/System.IO.Packaging.csproj
src/libraries/System.IO.Packaging/src/System/IO/Packaging/FileFormatException.cs
src/libraries/System.Net.HttpListener/src/System/Net/HttpListenerException.cs
src/libraries/System.Net.Mail/src/System/Net/Mail/SmtpException.cs
src/libraries/System.Net.Mail/src/System/Net/Mail/SmtpFailedRecipientException.cs
src/libraries/System.Net.Mail/src/System/Net/Mail/SmtpFailedRecipientsException.cs
src/libraries/System.Net.Ping/src/System/Net/NetworkInformation/PingException.cs
src/libraries/System.Net.Primitives/src/System/Net/CookieException.cs
src/libraries/System.Net.Primitives/src/System/Net/SocketException.cs
src/libraries/System.Net.Requests/src/System.Net.Requests.csproj
src/libraries/System.Net.Requests/src/System/Net/ProtocolViolationException.cs
src/libraries/System.Net.Requests/src/System/Net/WebException.cs
src/libraries/System.Net.Security/src/System/Security/Authentication/AuthenticationException.cs
src/libraries/System.Net.WebSockets/src/System/Net/WebSockets/WebSocketError.cs
src/libraries/System.Net.WebSockets/src/System/Net/WebSockets/WebSocketException.cs
src/libraries/System.Private.DataContractSerialization/src/System/Runtime/Serialization/InvalidDataContractException.cs
src/libraries/System.Private.Uri/src/System/UriFormatException.cs
src/libraries/System.Private.Xml/src/System/Xml/Schema/Inference/XmlSchemaInferenceException.cs
src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaException.cs
src/libraries/System.Private.Xml/src/System/Xml/Schema/XmlSchemaValidationException.cs
src/libraries/System.Private.Xml/src/System/Xml/XPath/XPathException.cs
src/libraries/System.Private.Xml/src/System/Xml/XmlException.cs
src/libraries/System.Private.Xml/src/System/Xml/Xslt/XsltException.cs
src/libraries/System.Runtime.Extensions/src/System/AppDomainUnloadedException.cs
src/libraries/System.Runtime.Extensions/src/System/CannotUnloadAppDomainException.cs
src/libraries/System.Runtime.Extensions/src/System/Context.cs
src/libraries/System.Runtime.Extensions/src/System/IO/InvalidDataException.cs
src/libraries/System.Runtime.Serialization.Formatters/tests/BinaryFormatterTestData.cs
src/libraries/System.Runtime.Serialization.Formatters/tests/BinaryFormatterTests.cs
src/libraries/System.Runtime.Serialization.Formatters/tests/BinaryFormatterTests.rd.xml
src/libraries/System.Runtime.Serialization.Formatters/tests/EqualityExtensions.cs
src/libraries/System.Runtime.Serialization.Formatters/tests/System.Runtime.Serialization.Formatters.Tests.csproj
src/libraries/System.Runtime.Serialization.Primitives/src/System.Runtime.Serialization.Primitives.csproj
src/libraries/System.Runtime.Serialization.Primitives/src/System/Runtime/Serialization/InvalidDataContractException.Serialization.cs [deleted file]
src/libraries/System.Runtime.Serialization.Primitives/src/System/Runtime/Serialization/InvalidDataContractException.cs
src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/PrivilegeNotHeldException.cs
src/libraries/System.Security.Cryptography.Primitives/src/System/Security/Cryptography/CryptographicUnexpectedOperationException.cs
src/libraries/System.Security.Cryptography.Xml/src/System/Security/Cryptography/Xml/CryptoSignedXmlRecursionException.cs
src/libraries/System.Security.Permissions/src/Resources/Strings.resx
src/libraries/System.Security.Permissions/src/System/Security/HostProtectionException.cs
src/libraries/System.Security.Permissions/src/System/Security/Permissions/HostProtectionResource.cs
src/libraries/System.Security.Permissions/src/System/Security/Policy/PolicyException.cs
src/libraries/System.Security.Permissions/src/System/Security/XmlSyntaxException.cs
src/libraries/System.Security.Principal.Windows/src/System/Security/Principal/IdentityNotMappedException.cs
src/libraries/System.ServiceProcess.ServiceController/src/System/ServiceProcess/TimeoutException.cs
src/libraries/System.Text.RegularExpressions/src/System/Text/RegularExpressions/RegexMatchTimeoutException.cs
src/libraries/System.Threading/src/System/Threading/Barrier.cs
src/libraries/System.Transactions.Local/src/System/Transactions/TransactionException.cs
src/libraries/dirs.proj
src/libraries/shims/manual/System.Data.csproj [new file with mode: 0644]
src/libraries/shims/manual/System.Data.forwards.cs [new file with mode: 0644]
src/libraries/shims/manual/System.forwards.cs
src/libraries/shims/manual/mscorlib.forwards.cs
src/libraries/shims/netfxreference.props
src/libraries/src.builds