diff --git a/src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.cs b/src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.cs index ae116a5286..dad5909a67 100644 --- a/src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.cs +++ b/src/Microsoft.Data.SqlClient/netcore/ref/Microsoft.Data.SqlClient.cs @@ -2,6 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. +[assembly: System.CLSCompliant(true)] namespace Microsoft.Data { /// diff --git a/src/Microsoft.Data.SqlClient/netfx/ref/Microsoft.Data.SqlClient.cs b/src/Microsoft.Data.SqlClient/netfx/ref/Microsoft.Data.SqlClient.cs index 359dffe1bd..8a9fa8429d 100644 --- a/src/Microsoft.Data.SqlClient/netfx/ref/Microsoft.Data.SqlClient.cs +++ b/src/Microsoft.Data.SqlClient/netfx/ref/Microsoft.Data.SqlClient.cs @@ -1,13 +1,17 @@ // Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. - +[assembly: System.CLSCompliant(true)] namespace Microsoft.Data { /// + [System.Serializable] public sealed partial class OperationAbortedException : System.SystemException { internal OperationAbortedException() { } + + private OperationAbortedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } + } } namespace Microsoft.Data.Sql @@ -27,6 +31,7 @@ public SqlNotificationRequest(string userData, string options, int timeout) { } public string UserData { get { throw null; } set { } } } } + namespace Microsoft.Data.SqlClient { /// @@ -1315,9 +1320,12 @@ public void CopyTo(Microsoft.Data.SqlClient.SqlError[] array, int index) { } public System.Collections.IEnumerator GetEnumerator() { throw null; } } /// + [System.Serializable] public sealed partial class SqlException : System.Data.Common.DbException { internal SqlException() { } + private SqlException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } + /// public byte Class { get { throw null; } } /// @@ -1708,10 +1716,14 @@ public interface IBinarySerialize /// void Write(System.IO.BinaryWriter w); } + /// + [System.Serializable] public sealed partial class InvalidUdtException : System.SystemException { internal InvalidUdtException() { } + private InvalidUdtException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { } + } /// public partial class SqlDataRecord : System.Data.IDataRecord diff --git a/src/Microsoft.Data.SqlClient/netfx/tools/targets/GenerateAssemblyInfo.targets b/src/Microsoft.Data.SqlClient/netfx/tools/targets/GenerateAssemblyInfo.targets index bdff0a0de6..334b629788 100644 --- a/src/Microsoft.Data.SqlClient/netfx/tools/targets/GenerateAssemblyInfo.targets +++ b/src/Microsoft.Data.SqlClient/netfx/tools/targets/GenerateAssemblyInfo.targets @@ -13,19 +13,19 @@ - - - - - - - - - - - - - + + + + + + + + + + + + + diff --git a/tools/targets/GenerateThisAssemblyCs.targets b/tools/targets/GenerateThisAssemblyCs.targets index 4d6f317f4f..0bcdf8a2aa 100644 --- a/tools/targets/GenerateThisAssemblyCs.targets +++ b/tools/targets/GenerateThisAssemblyCs.targets @@ -8,6 +8,7 @@ BeforeTargets="CoreCompile"> +[assembly: System.CLSCompliant(true)] namespace System { internal static class ThisAssembly