diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj
index 696c98eb14..0a0f573333 100644
--- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj
+++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj
@@ -28,6 +28,49 @@
+
+ Common\CoreLib\System\Threading\Tasks\TaskToApm.cs
+
+
+ Common\Microsoft\Data\ProviderBase\DbConnectionClosed.cs
+
+
+ Common\Microsoft\Data\ProviderBase\DbConnectionFactory.cs
+
+
+ Common\Microsoft\Data\ProviderBase\DbConnectionInternal.cs
+
+
+ Common\System\Net\ContextFlagsPal.cs
+
+
+ Common\System\Net\DebugCriticalHandleMinusOneIsInvalid.cs
+
+
+ Common\System\Net\DebugSafeHandle.cs
+
+
+ Common\System\Net\InternalException.cs
+
+
+ Common\System\Net\Logging\DebugThreadTracking.cs
+
+
+ Common\System\Net\Logging\NetEventSource.Common.cs
+
+
+ Common\System\Net\NegotiationInfoClass.cs
+
+
+ Common\System\Net\Security\SecurityBuffer.cs
+
+
+ Common\System\Net\Security\SecurityBufferType.cs
+
+
+ Common\System\Net\SecurityStatusPal.cs
+
+
Microsoft\Data\Common\ActivityCorrelator.cs
@@ -79,6 +122,9 @@
Microsoft\Data\ProviderBase\DbMetaDataFactory.cs
+
+ Common\Microsoft\Data\ProviderBase\DbReferenceCollection.cs
+
Microsoft\Data\ProviderBase\FieldNameLookup.cs
@@ -103,12 +149,18 @@
Microsoft\Data\SqlClient\ActiveDirectoryAuthenticationTimeoutRetryHelper.cs
+
+ Microsoft\Data\SqlClient\AlwaysEncryptedEnclaveProviderUtils.cs
+
Microsoft\Data\SqlClient\ApplicationIntent.cs
Microsoft\Data\SqlClient\AssemblyRef.cs
+
+ Microsoft\Data\SqlClient\AzureAttestationBasedEnclaveProvider.cs
+
Microsoft\Data\SqlClient\ColumnEncryptionKeyInfo.cs
@@ -121,12 +173,24 @@
Microsoft\Data\SqlClient\EnclaveDelegate.cs
+
+ Microsoft\Data\SqlClient\EnclaveDelegate.Crypto.cs
+
Microsoft\Data\SqlClient\EnclavePackage.cs
+
+ Microsoft\Data\SqlClient\EnclaveProviderBase.cs
+
+
+ Microsoft\Data\SqlClient\EnclaveSessionCache.cs
+
Microsoft\Data\SqlClient\LocalAppContextSwitches.cs
+
+ Microsoft\Data\SqlClient\NoneAttestationEnclaveProvider.cs
+
Microsoft\Data\SqlClient\OnChangedEventHandler.cs
@@ -175,9 +239,6 @@
Microsoft\Data\SqlClient\RowsCopiedEventHandler.cs
-
- Microsoft\Data\SqlClient\SqlSequentialTextReader.cs
-
Microsoft\Data\SqlClient\Server\ExtendedClrTypeCode.cs
@@ -244,8 +305,8 @@
Microsoft\Data\SqlClient\Server\SqlRecordBuffer.cs
-
- Microsoft\Data\SqlClient\SqlTransaction.Common.cs
+
+ Microsoft\Data\SqlClient\Server\SqlSer.cs
Microsoft\Data\SqlClient\Server\ValueUtilsSmi.cs
@@ -271,9 +332,6 @@
Microsoft\Data\SqlClient\SqlAuthenticationProvider.cs
-
- Microsoft\Data\SqlClient\SqlBuffer.cs
-
Microsoft\Data\SqlClient\SqlAuthenticationToken.cs
@@ -283,9 +341,15 @@
Microsoft\Data\SqlClient\SqlBatchCommand.cs
+
+ Microsoft\Data\SqlClient\SqlBatchCommand.Net8OrGreater.cs
+
Microsoft\Data\SqlClient\SqlBatchCommandCollection.cs
+
+ Microsoft\Data\SqlClient\SqlBuffer.cs
+
Microsoft\Data\SqlClient\SqlBulkCopyColumnMapping.cs
@@ -331,12 +395,12 @@
Microsoft\Data\SqlClient\SqlCollation.cs
-
- Microsoft\Data\SqlClient\SqlColumnEncryptionKeyStoreProvider.cs
-
Microsoft\Data\SqlClient\SqlCommandBuilder.cs
+
+ Microsoft\Data\SqlClient\SqlColumnEncryptionKeyStoreProvider.cs
+
Microsoft\Data\SqlClient\SqlCommandSet.cs
@@ -382,6 +446,12 @@
Microsoft\Data\SqlClient\SqlDependencyUtils.AppDomain.cs
+
+ Microsoft\Data\SqlClient\SqlDependencyUtils.AssemblyLoadContext.cs
+
+
+ Microsoft\Data\SqlClient\SqlEnclaveAttestationParameters.Crypto.cs
+
Microsoft\Data\SqlClient\SqlEnclaveSession.cs
@@ -463,12 +533,15 @@
Microsoft\Data\SqlClient\SqlSequentialStream.cs
-
- Microsoft\Data\SqlClient\Server\SqlSer.cs
+
+ Microsoft\Data\SqlClient\SqlSequentialTextReader.cs
Microsoft\Data\SqlClient\SqlStatistics.cs
+
+ Microsoft\Data\SqlClient\SqlStream.cs
+
Microsoft\Data\SqlClient\SqlSymmetricKeyCache.cs
@@ -478,12 +551,27 @@
Microsoft\Data\SqlClient\SqlUtil.cs
+
+ Microsoft\Data\SqlClient\SqlTransaction.Common.cs
+
+
+ Microsoft\Data\SqlClient\SSPI\ManagedSSPIContextProvider.cs
+
+
+ Microsoft\Data\SqlClient\SSPI\NegotiateSSPIContextProvider.cs
+
+
+ Microsoft\Data\SqlClient\SSPI\SSPIContextProvider.cs
+
Microsoft\Data\SqlClient\TdsEnums.cs
Microsoft\Data\SqlClient\TdsParameterSetter.cs
+
+ Microsoft\Data\SqlClient\TdsParser.cs
+
Microsoft\Data\SqlClient\TdsParserStateObject.cs
@@ -499,16 +587,19 @@
Microsoft\Data\SqlClient\TdsValueSetter.cs
+
+ Microsoft\Data\SqlClient\VirtualSecureModeEnclaveProvider.cs
+
+
+ Microsoft\Data\SqlClient\VirtualSecureModeEnclaveProviderBase.cs
+
Microsoft\Data\SQLTypes\SQLResource.cs
Microsoft\Data\SqlTypes\SqlTypeWorkarounds.cs
-
- Microsoft\Data\SqlClient\SqlStream.cs
-
-
+
Resources\ResCategoryAttribute.cs
@@ -517,117 +608,23 @@
Common\System\Diagnostics\CodeAnalysis.cs
-
- Microsoft\Data\SqlClient\SSPI\ManagedSSPIContextProvider.cs
-
-
- Microsoft\Data\SqlClient\SSPI\NegotiateSSPIContextProvider.cs
-
-
- Microsoft\Data\SqlClient\SSPI\SSPIContextProvider.cs
-
-
- Microsoft\Data\SqlClient\TdsParser.cs
-
-
- Microsoft\Data\ProviderBase\DbReferenceCollection.cs
-
-
-
-
-
-
-
- Microsoft\Data\SqlClient\AlwaysEncryptedEnclaveProviderUtils.cs
-
-
- Microsoft\Data\SqlClient\AzureAttestationBasedEnclaveProvider.cs
-
-
- Microsoft\Data\SqlClient\EnclaveDelegate.Crypto.cs
-
-
- Microsoft\Data\SqlClient\EnclaveProviderBase.cs
-
-
- Microsoft\Data\SqlClient\EnclaveSessionCache.cs
-
-
- Microsoft\Data\SqlClient\SqlEnclaveAttestationParameters.Crypto.cs
-
-
- Microsoft\Data\SqlClient\VirtualSecureModeEnclaveProvider.cs
-
-
- Microsoft\Data\SqlClient\NoneAttestationEnclaveProvider.cs
-
-
- Microsoft\Data\SqlClient\VirtualSecureModeEnclaveProviderBase.cs
-
-
-
-
-
-
-
-
-
-
-
-
- Microsoft\Data\SqlClient\SqlDependencyUtils.AssemblyLoadContext.cs
-
-
-
-
-
-
- Resources\StringsHelper.cs
-
-
- Resources\Strings.Designer.cs
- True
- True
- Strings.resx
-
-
- Resources\Strings.resx
- Microsoft.Data.SqlClient.Resources.Strings.resources
- ResXFileCodeGenerator
- Strings.Designer.cs
- System
-
-
- Resources\%(RecursiveDir)%(Filename)%(Extension)
-
-
-
-
- Common\CoreLib\System\Threading\Tasks\TaskToApm.cs
-
-
- Common\Microsoft\Data\ProviderBase\DbConnectionClosed.cs
-
-
- Common\Microsoft\Data\ProviderBase\DbConnectionFactory.cs
-
-
- Common\Microsoft\Data\ProviderBase\DbConnectionInternal.cs
-
-
+
+
+
+
@@ -637,16 +634,23 @@
+
-
+
+
+
+
+
+
+
@@ -654,52 +658,22 @@
+
+
-
-
-
+
+
-
-
- Microsoft\Data\Common\AdapterUtil.Windows.cs
-
-
- Microsoft\Data\Sql\SqlDataSourceEnumeratorNativeHelper.cs
-
-
- Microsoft\Data\Sql\SqlDataSourceEnumerator.Windows.cs
-
-
-
-
-
- Microsoft\Data\SqlClient\TdsParserSafeHandles.Windows.cs
-
-
-
-
-
- Microsoft\Data\Common\AdapterUtil.Unix.cs
-
-
-
-
-
-
-
-
-
-
Common\CoreLib\Interop\Windows\kernel32\Interop.FileTypes.cs
@@ -707,15 +681,30 @@
Common\CoreLib\Interop\Windows\kernel32\Interop.GetFileType_SafeHandle.cs
+
+ Common\CoreLib\Interop\Windows\Kernel32\Interop.CloseHandle.cs
+
Common\CoreLib\Interop\Windows\kernel32\Interop.SetThreadErrorMode.cs
+
+ Common\CoreLib\Microsoft\Win32\SafeHandles\SafeLibraryHandle.cs
+
Common\CoreLib\System\IO\PathInternal.Windows.cs
+
+ Common\Interop\Windows\Crypt32\Interop.certificates.cs
+
+
+ Common\Interop\Windows\Crypt32\Interop.certificates_types.cs
+
Common\Interop\Windows\Interop.Errors.cs
+
+ Common\Interop\Windows\Interop.Libraries.cs
+
Common\Interop\Windows\Interop.UNICODE_STRING.cs
@@ -725,6 +714,12 @@
Common\Interop\Windows\Kernel32\Interop.DeviceIoControl.cs
+
+ Common\Interop\Windows\kernel32\Interop.FreeLibrary.cs
+
+
+ Common\Interop\Windows\kernel32\Interop.GetProcAddress.cs
+
Common\Interop\Windows\Kernel32\Interop.IoControlCodeAccess.cs
@@ -743,89 +738,6 @@
Common\Interop\Windows\NtDll\Interop.RtlNtStatusToDosError.cs
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Common\Interop\Windows\kernel32\Interop.LoadLibraryEx.cs
-
-
- Microsoft\Data\SqlClient\SSPI\NativeSSPIContextProvider.cs
-
-
-
-
-
-
-
-
-
-
- Common\CoreLib\Microsoft\Win32\SafeHandles\SafeLibraryHandle.cs
-
-
- Common\Interop\Windows\kernel32\Interop.FreeLibrary.cs
-
-
- Common\Interop\Windows\kernel32\Interop.GetProcAddress.cs
-
-
-
-
-
-
- Common\Interop\Windows\Interop.Libraries.cs
-
-
-
-
-
- Common\System\Net\InternalException.cs
-
-
- Common\System\Net\Logging\NetEventSource.Common.cs
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Common\CoreLib\Interop\Windows\Kernel32\Interop.CloseHandle.cs
-
-
- Common\Interop\Windows\Crypt32\Interop.certificates.cs
-
-
- Common\Interop\Windows\Crypt32\Interop.certificates_types.cs
-
Common\Interop\Windows\SChannel\Interop.SecPkgContext_ApplicationProtocol.cs
@@ -835,30 +747,6 @@
Common\Interop\Windows\SChannel\SecPkgContext_ConnectionInfo.cs
-
- Common\System\Collections\Generic\BidirectionalDictionary.cs
-
-
- Common\System\Net\ContextFlagsAdapterPal.Windows.cs
-
-
- Common\System\Net\DebugCriticalHandleZeroOrMinusOneIsInvalid.cs
-
-
- Common\System\Net\Security\SecurityContextTokenHandle.cs
-
-
- Common\System\Net\SecurityStatusAdapterPal.Windows.cs
-
-
- Common\System\Net\Security\NegotiateStreamPal.Windows.cs
-
-
- Common\System\Net\Security\NetEventSource.Security.cs
-
-
- Common\System\Net\Security\NetEventSource.Security.Windows.cs
-
Common\Interop\Windows\sspicli\GlobalSSPI.cs
@@ -904,37 +792,56 @@
Common\Interop\Windows\sspicli\SSPIWrapper.cs
-
-
-
-
- Common\System\Net\ContextFlagsPal.cs
+
+ Common\System\Collections\Generic\BidirectionalDictionary.cs
-
- Common\System\Net\DebugCriticalHandleMinusOneIsInvalid.cs
+
+ Common\System\Net\ContextFlagsAdapterPal.Windows.cs
-
- Common\System\Net\DebugSafeHandle.cs
+
+ Common\System\Net\DebugCriticalHandleZeroOrMinusOneIsInvalid.cs
-
- Common\System\Net\Logging\DebugThreadTracking.cs
+
+ Common\System\Net\Security\NegotiateStreamPal.Windows.cs
-
- Common\System\Net\NegotiationInfoClass.cs
+
+ Common\System\Net\Security\NetEventSource.Security.cs
-
- Common\System\Net\Security\SecurityBuffer.cs
+
+ Common\System\Net\Security\NetEventSource.Security.Windows.cs
-
- Common\System\Net\Security\SecurityBufferType.cs
+
+ Common\System\Net\Security\SecurityContextTokenHandle.cs
-
- Common\System\Net\SecurityStatusPal.cs
+
+ Common\System\Net\SecurityStatusAdapterPal.Windows.cs
-
+
+
+ Microsoft\Data\Common\AdapterUtil.Windows.cs
+
+
+ Microsoft\Data\Sql\SqlDataSourceEnumeratorNativeHelper.cs
+
+
+ Microsoft\Data\Sql\SqlDataSourceEnumerator.Windows.cs
+
+
+ Microsoft\Data\SqlClient\TdsParserSafeHandles.Windows.cs
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
Common\Interop\Unix\Interop.Libraries.cs
@@ -968,24 +875,82 @@
Common\System\Net\Security\NegotiateStreamPal.Unix.cs
+
+
+ Microsoft\Data\Common\AdapterUtil.Unix.cs
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
+
+
+
+
+
+
-
-
- Microsoft\Data\SqlClient\SqlBatchCommand.Net8OrGreater.cs
+
+
+
+
+ Common\Interop\Windows\kernel32\Interop.LoadLibraryEx.cs
+
+ Microsoft\Data\SqlClient\SSPI\NativeSSPIContextProvider.cs
+
+
+
+
+
+
+
-
-
-
-
+
+
+
+ Resources\StringsHelper.cs
+
+
+ Resources\Strings.Designer.cs
+ True
+ True
+ Strings.resx
+
+
+ Resources\Strings.resx
+ Microsoft.Data.SqlClient.Resources.Strings.resources
+ ResXFileCodeGenerator
+ Strings.Designer.cs
+ System
+
+
+ Resources\%(RecursiveDir)%(Filename)%(Extension)
+
Microsoft.Data.SqlClient.SqlMetaData.xml
+
+
+
+
+
+
diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/AlwaysEncryptedKeyConverter.CrossPlatform.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/AlwaysEncryptedKeyConverter.CrossPlatform.cs
index 81b90debeb..8b3def875c 100644
--- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/AlwaysEncryptedKeyConverter.CrossPlatform.cs
+++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/AlwaysEncryptedKeyConverter.CrossPlatform.cs
@@ -2,8 +2,6 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-#if !NETSTANDARD2_0
-
using System;
using System.Diagnostics;
using System.Security.Cryptography;
@@ -135,5 +133,3 @@ internal static RSA GetRSAFromCertificate(X509Certificate2 certificate)
}
}
}
-
-#endif
diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNIStreams.ValueTask.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNIStreams.ValueTask.cs
index 03b071eac2..f5f38f0efe 100644
--- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNIStreams.ValueTask.cs
+++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SNIStreams.ValueTask.cs
@@ -2,8 +2,6 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-#if !NETSTANDARD2_0
-
using System.Threading;
using System.Threading.Tasks;
using System;
@@ -109,5 +107,3 @@ public override async ValueTask WriteAsync(ReadOnlyMemory buffer, Cancella
}
}
}
-
-#endif
diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SslOverTdsStream.NetCoreApp.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SslOverTdsStream.NetCoreApp.cs
index 655fc91d7c..be8d1a0160 100644
--- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SslOverTdsStream.NetCoreApp.cs
+++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SNI/SslOverTdsStream.NetCoreApp.cs
@@ -2,8 +2,6 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-#if !NETSTANDARD2_0
-
using System;
using System.Buffers;
using System.Threading;
@@ -295,5 +293,3 @@ public override async ValueTask WriteAsync(ReadOnlyMemory buffer, Cancella
}
}
}
-
-#endif
diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlAuthenticationProviderManager.NetCoreApp.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlAuthenticationProviderManager.NetCoreApp.cs
index 9170614927..dd57c60da8 100644
--- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlAuthenticationProviderManager.NetCoreApp.cs
+++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlAuthenticationProviderManager.NetCoreApp.cs
@@ -2,8 +2,6 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-#if !NETSTANDARD2_0
-
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
@@ -197,5 +195,3 @@ internal class SqlClientAuthenticationProviderConfigurationSection : SqlAuthenti
}
}
}
-
-#endif
diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlClientEventSource.NetCoreApp.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlClientEventSource.NetCoreApp.cs
index 6dc531f766..c0312ca219 100644
--- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlClientEventSource.NetCoreApp.cs
+++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlClientEventSource.NetCoreApp.cs
@@ -2,8 +2,6 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-#if !NETSTANDARD2_0
-
using System;
using System.Diagnostics.Tracing;
using System.Threading;
@@ -396,5 +394,3 @@ internal override void ReclaimedConnectionRequest()
}
}
}
-
-#endif
diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlColumnEncryptionEnclaveProvider.NetCoreApp.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlColumnEncryptionEnclaveProvider.NetCoreApp.cs
index da5a516004..fd81db557d 100644
--- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlColumnEncryptionEnclaveProvider.NetCoreApp.cs
+++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlColumnEncryptionEnclaveProvider.NetCoreApp.cs
@@ -2,8 +2,6 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-#if !NETSTANDARD2_0
-
using System.Security.Cryptography;
namespace Microsoft.Data.SqlClient
@@ -25,5 +23,3 @@ internal abstract void CreateEnclaveSession(byte[] enclaveAttestationInfo, ECDif
out SqlEnclaveSession sqlEnclaveSession, out long counter);
}
}
-
-#endif
diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlDelegatedTransaction.NetCoreApp.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlDelegatedTransaction.NetCoreApp.cs
index ea27ceabe0..561f9bd6fb 100644
--- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlDelegatedTransaction.NetCoreApp.cs
+++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlDelegatedTransaction.NetCoreApp.cs
@@ -2,8 +2,6 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-#if !NETSTANDARD2_0
-
using System;
using System.Transactions;
@@ -16,5 +14,3 @@ internal sealed partial class SqlDelegatedTransaction : IPromotableSinglePhaseNo
private Guid GetGlobalTxnIdentifierFromToken() => new Guid(new ReadOnlySpan(_connection.PromotedDTCToken, _globalTransactionsTokenVersionSizeInBytes, 16));
}
}
-
-#endif
diff --git a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParser.NetCoreApp.cs b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParser.NetCoreApp.cs
index 2c7554a0cb..95dd0d9731 100644
--- a/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParser.NetCoreApp.cs
+++ b/src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/TdsParser.NetCoreApp.cs
@@ -2,8 +2,6 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-#if !NETSTANDARD2_0
-
using System;
using System.Diagnostics;
using System.Buffers.Binary;
@@ -25,5 +23,3 @@ internal static Guid ConstructGuid(ReadOnlySpan bytes)
}
}
}
-
-#endif
diff --git a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/AlwaysEncryptedEnclaveProviderUtils.cs b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/AlwaysEncryptedEnclaveProviderUtils.cs
index 890af0206f..ff84ab3310 100644
--- a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/AlwaysEncryptedEnclaveProviderUtils.cs
+++ b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/AlwaysEncryptedEnclaveProviderUtils.cs
@@ -2,8 +2,6 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-#if !NETSTANDARD2_0
-
using System;
namespace Microsoft.Data.SqlClient
@@ -51,5 +49,3 @@ internal enum EnclaveType
Sgx = 2
}
}
-
-#endif
diff --git a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/AzureAttestationBasedEnclaveProvider.cs b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/AzureAttestationBasedEnclaveProvider.cs
index 70f6bc5f91..7b1b2bf2e4 100644
--- a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/AzureAttestationBasedEnclaveProvider.cs
+++ b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/AzureAttestationBasedEnclaveProvider.cs
@@ -2,8 +2,6 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-#if !NETSTANDARD2_0
-
using System;
using System.Collections.Generic;
using System.Diagnostics;
@@ -542,5 +540,3 @@ private byte[] GetSharedSecret(EnclavePublicKey enclavePublicKey, byte[] nonce,
#endregion
}
}
-
-#endif
diff --git a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/EnclaveDelegate.Crypto.cs b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/EnclaveDelegate.Crypto.cs
index fc87127b04..db1bdea90f 100644
--- a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/EnclaveDelegate.Crypto.cs
+++ b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/EnclaveDelegate.Crypto.cs
@@ -2,8 +2,6 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-#if !NETSTANDARD2_0
-
using System;
using System.Collections.Concurrent;
using System.Collections.Generic;
@@ -213,5 +211,3 @@ internal byte[] GetSerializedAttestationParameters(SqlEnclaveAttestationParamete
}
}
}
-
-#endif
diff --git a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/EnclaveProviderBase.cs b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/EnclaveProviderBase.cs
index 1a2bcaeb03..b8a52b9e4b 100644
--- a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/EnclaveProviderBase.cs
+++ b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/EnclaveProviderBase.cs
@@ -2,8 +2,6 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-#if !NETSTANDARD2_0
-
using System;
using System.Runtime.Caching;
using System.Security.Cryptography;
@@ -215,5 +213,3 @@ protected SqlEnclaveSession AddEnclaveSessionToCache(EnclaveSessionParameters en
}
#endregion
}
-
-#endif
diff --git a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/EnclaveSessionCache.cs b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/EnclaveSessionCache.cs
index d60c3ad5ba..2cc34eeeb5 100644
--- a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/EnclaveSessionCache.cs
+++ b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/EnclaveSessionCache.cs
@@ -2,8 +2,6 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-#if !NETSTANDARD2_0
-
using System;
using System.Runtime.Caching;
using System.Threading;
@@ -74,5 +72,3 @@ private string GenerateCacheKey(EnclaveSessionParameters enclaveSessionParameter
}
}
}
-
-#endif
diff --git a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/NoneAttestationEnclaveProvider.cs b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/NoneAttestationEnclaveProvider.cs
index 9ef8a77d19..fabd69c976 100644
--- a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/NoneAttestationEnclaveProvider.cs
+++ b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/NoneAttestationEnclaveProvider.cs
@@ -2,8 +2,6 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-#if !NETSTANDARD2_0
-
using System;
using System.Diagnostics;
using System.Security.Cryptography;
@@ -106,5 +104,3 @@ internal override void InvalidateEnclaveSession(EnclaveSessionParameters enclave
}
}
}
-
-#endif
diff --git a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlEnclaveAttestationParameters.Crypto.cs b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlEnclaveAttestationParameters.Crypto.cs
index 2abb408d41..c2e9739237 100644
--- a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlEnclaveAttestationParameters.Crypto.cs
+++ b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/SqlEnclaveAttestationParameters.Crypto.cs
@@ -2,8 +2,6 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-#if !NETSTANDARD2_0
-
using System;
using System.Security.Cryptography;
@@ -52,5 +50,3 @@ internal byte[] GetInput()
}
}
}
-
-#endif
diff --git a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/VirtualSecureModeEnclaveProvider.cs b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/VirtualSecureModeEnclaveProvider.cs
index 7ebad456f5..fd180d12d6 100644
--- a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/VirtualSecureModeEnclaveProvider.cs
+++ b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/VirtualSecureModeEnclaveProvider.cs
@@ -2,8 +2,6 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-#if !NETSTANDARD2_0
-
using System;
using System.Collections.Generic;
using System.Diagnostics;
@@ -470,5 +468,3 @@ public static byte[] TakeBytesAndAdvance(byte[] input, ref int offset, int count
}
}
}
-
-#endif
diff --git a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/VirtualSecureModeEnclaveProviderBase.cs b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/VirtualSecureModeEnclaveProviderBase.cs
index c60dd01c72..cfbe531e82 100644
--- a/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/VirtualSecureModeEnclaveProviderBase.cs
+++ b/src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/VirtualSecureModeEnclaveProviderBase.cs
@@ -2,8 +2,6 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
-#if !NETSTANDARD2_0
-
using System;
using System.Runtime.Caching;
using System.Security.Cryptography;
@@ -421,5 +419,3 @@ private byte[] GetSharedSecret(EnclavePublicKey enclavePublicKey, EnclaveDiffieH
#endregion
}
}
-
-#endif