Skip to content

Commit a0af306

Browse files
DEV | Drop support for Net461 and add support for Net462 (#1574)
1 parent 9583088 commit a0af306

25 files changed

+69
-69
lines changed

BUILDGUIDE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ msbuild -t:BuildTestsNetCore
7070

7171
```bash
7272
msbuild -t:BuildTestsNetFx
73-
# Build the tests for the .NET Framework (NetFx) driver in 'Debug' Configuration. Default .NET Framework version is 4.6.1.
73+
# Build the tests for the .NET Framework (NetFx) driver in 'Debug' Configuration. Default .NET Framework version is 4.6.2.
7474
```
7575

7676
```bash
@@ -281,7 +281,7 @@ Tests can be built and run with custom Target Frameworks. See the below examples
281281
```bash
282282
msbuild -t:BuildTestsNetFx -p:TargetNetFxVersion=net462
283283
# Build the tests for custom TargetFramework (.NET Framework)
284-
# Applicable values: net461 (Default) | net462 | net47 | net471 net472 | net48
284+
# Applicable values: net462 (Default) | net462 | net47 | net471 net472 | net48
285285
```
286286

287287
```bash
@@ -295,7 +295,7 @@ msbuild -t:BuildTestsNetCore -p:TargetNetCoreVersion=netcoreapp3.1
295295
```bash
296296
dotnet test -p:TargetNetFxVersion=net462 ...
297297
# Use above property to run Functional Tests with custom TargetFramework (.NET Framework)
298-
# Applicable values: net461 (Default) | net462 | net47 | net471 net472 | net48
298+
# Applicable values: net462 (Default) | net462 | net47 | net471 net472 | net48
299299

300300
dotnet test -p:TargetNetCoreVersion=netcoreapp3.1 ...
301301
# Use above property to run Functional Tests with custom TargetFramework (.NET Core)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Microsoft.Data.SqlClient is a data provider for Microsoft SQL Server and Azure S
1212

1313
The Microsoft.Data.SqlClient package supports the below environments:
1414

15-
- .NET Framework 4.6.1+
15+
- .NET Framework 4.6.2+
1616
- .NET Core 3.1+
1717
- .NET Standard 2.0+
1818

RunTests.cmd

Lines changed: 13 additions & 13 deletions
Large diffs are not rendered by default.

src/Microsoft.Data.SqlClient/add-ons/Directory.Build.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
<!--These properties can be modified locally to target .NET version of choice to build and test entire test suite-->
1818
<PropertyGroup>
19-
<TargetNetFxVersion Condition="'$(TargetNetFxVersion)' == ''">net461</TargetNetFxVersion>
19+
<TargetNetFxVersion Condition="'$(TargetNetFxVersion)' == ''">net462</TargetNetFxVersion>
2020
<TargetNetStandardVersion Condition="'$(TargetNetStandardVersion)' == ''">netstandard2.0</TargetNetStandardVersion>
2121
<TargetNetCoreVersion Condition="'$(TargetNetCoreVersion)' == ''">netcoreapp3.1</TargetNetCoreVersion>
2222
</PropertyGroup>
@@ -37,7 +37,7 @@
3737
<PropertyGroup>
3838
<TargetFrameworks Condition="'$(TestTargetOS)' == 'Windowsnetstandard' OR '$(TestTargetOS)' == 'Unixnetstandard'">netstandard2.0;netstandard2.1</TargetFrameworks>
3939
<TargetFrameworks Condition="'$(TestTargetOS)' == 'Windowsnetcoreapp' OR '$(TestTargetOS)' == 'Unixnetcoreapp'">netcoreapp3.1</TargetFrameworks>
40-
<TargetFrameworks Condition="'$(TestTargetOS)' == 'Windowsnetfx'">net461</TargetFrameworks>
40+
<TargetFrameworks Condition="'$(TestTargetOS)' == 'Windowsnetfx'">net462</TargetFrameworks>
4141
</PropertyGroup>
4242
</Otherwise>
4343
</Choose>

src/Microsoft.Data.SqlClient/netcore/src/Common/src/System/Net/Logging/NetEventSource.Common.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
using System.Diagnostics.Tracing;
1414
using System.Runtime.CompilerServices;
1515
using System.Runtime.InteropServices;
16-
#if NET461
16+
#if net462
1717
using System.Security;
1818
#endif
1919

@@ -45,7 +45,7 @@ namespace System.Net
4545
// method that takes an object and optionally provides a string representation of it, in case a particular library wants to customize further.
4646

4747
/// <summary>Provides logging facilities for System.Net libraries.</summary>
48-
#if NET461
48+
#if net462
4949
[SecuritySafeCritical]
5050
#endif
5151
internal sealed partial class NetEventSource : EventSource

src/Microsoft.Data.SqlClient/netcore/src/Microsoft/Data/SqlClient/SqlInternalConnection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ private void EnlistNonNull(Transaction tx)
370370
// NOTE: Global Transactions is an Azure SQL DB only
371371
// feature where the Transaction Manager (TM) is not
372372
// MS-DTC. Sys.Tx added APIs to support Non MS-DTC
373-
// promoter types/TM in .NET 4.6.1. Following directions
373+
// promoter types/TM in .NET 4.6.2. Following directions
374374
// from .NETFX shiproom, to avoid a "hard-dependency"
375375
// (compile time) on Sys.Tx, we use reflection to invoke
376376
// the new APIs. Further, the _isGlobalTransaction flag

src/Microsoft.Data.SqlClient/netfx/ref/Microsoft.Data.SqlClient.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
4-
<TargetFramework>net461</TargetFramework>
4+
<TargetFramework>net462</TargetFramework>
55
<IntermediateOutputPath>$(ObjFolder)$(Configuration)\$(AssemblyName)\ref\</IntermediateOutputPath>
66
<OutputPath>$(BinFolder)$(Configuration)\$(AssemblyName)\ref\</OutputPath>
77
<DocumentationFile>$(OutputPath)\Microsoft.Data.SqlClient.xml</DocumentationFile>

src/Microsoft.Data.SqlClient/netfx/src/Microsoft.Data.SqlClient.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<PropertyGroup>
55
<ProjectGuid>{407890AC-9876-4FEF-A6F1-F36A876BAADE}</ProjectGuid>
66
<RootNamespace>SqlClient</RootNamespace>
7-
<TargetFrameworkVersion>v4.6.1</TargetFrameworkVersion>
7+
<TargetFrameworkVersion>v4.6.2</TargetFrameworkVersion>
88
<EnableLocalAppContext>true</EnableLocalAppContext>
99
<ResxFileName>Strings</ResxFileName>
1010
<ResourceFileName>SqlClient.Resources.$(ResxFileName)</ResourceFileName>

src/Microsoft.Data.SqlClient/netfx/src/Microsoft/Data/SqlClient/SqlInternalConnection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ private void EnlistNonNull(SysTx.Transaction tx)
475475
// NOTE: Global Transactions is an Azure SQL DB only
476476
// feature where the Transaction Manager (TM) is not
477477
// MS-DTC. Sys.Tx added APIs to support Non MS-DTC
478-
// promoter types/TM in .NET 4.6.1. Following directions
478+
// promoter types/TM in .NET 4.6.2. Following directions
479479
// from .NETFX shiproom, to avoid a "hard-dependency"
480480
// (compile time) on Sys.Tx, we use reflection to invoke
481481
// the new APIs. Further, the _isGlobalTransaction flag

src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.Designer.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.de.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2872,7 +2872,7 @@
28722872
<value>Globale Transaktionen sind für diese Azure SQL-Datenbank-Instanz nicht aktiviert. Wenden Sie sich an den Azure SQL-Datenbank-Support, um Unterstützung zu erhalten.</value>
28732873
</data>
28742874
<data name="GT_UnsupportedSysTxVersion" xml:space="preserve">
2875-
<value>Die aktuell geladene Datei "System.Transactions.dll" unterstützt keine globalen Transaktionen. Führen Sie ein Upgrade auf .NET Framework 4.6.1 oder höher durch.</value>
2875+
<value>Die aktuell geladene Datei "System.Transactions.dll" unterstützt keine globalen Transaktionen. Führen Sie ein Upgrade auf .NET Framework 4.6.2 oder höher durch.</value>
28762876
</data>
28772877
<data name="SQL_BatchedUpdatesNotAvailableOnContextConnection" xml:space="preserve">
28782878
<value>Batchupdates werden bei der Kontextverbindung nicht unterstützt.</value>

src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.es.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2872,7 +2872,7 @@
28722872
<value>Las transacciones globales no están habilitadas para esta base de datos SQL de Azure. Para obtener ayuda, póngase en contacto con el soporte técnico de Azure SQL Database.</value>
28732873
</data>
28742874
<data name="GT_UnsupportedSysTxVersion" xml:space="preserve">
2875-
<value>El archivo System.Transactions.dll cargado actualmente no es compatible con las transacciones globales. Actualice a .NET Framework 4.6.1 o posterior.</value>
2875+
<value>El archivo System.Transactions.dll cargado actualmente no es compatible con las transacciones globales. Actualice a .NET Framework 4.6.2 o posterior.</value>
28762876
</data>
28772877
<data name="SQL_BatchedUpdatesNotAvailableOnContextConnection" xml:space="preserve">
28782878
<value>La conexión de contexto no admite la actualización de procesamiento por lotes.</value>

src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.fr.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2872,7 +2872,7 @@
28722872
<value>Les transactions globales ne sont pas activées pour cette base de données Azure SQL. Contactez le support d'Azure SQL Database pour obtenir de l'aide.</value>
28732873
</data>
28742874
<data name="GT_UnsupportedSysTxVersion" xml:space="preserve">
2875-
<value>Le fichier System.Transactions.dll actuellement chargé ne prend pas en charge les transactions globales. Effectuez une mise à niveau vers .NET Framework 4.6.1 ou ultérieur.</value>
2875+
<value>Le fichier System.Transactions.dll actuellement chargé ne prend pas en charge les transactions globales. Effectuez une mise à niveau vers .NET Framework 4.6.2 ou ultérieur.</value>
28762876
</data>
28772877
<data name="SQL_BatchedUpdatesNotAvailableOnContextConnection" xml:space="preserve">
28782878
<value>Le traitement par lots des mises à jour n'est pas pris en charge sur la connexion du contexte.</value>

src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.it.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2872,7 +2872,7 @@
28722872
<value>Le transazioni globali non sono abilitate per questo database SQL di Azure. Per assistenza, contattare il supporto del database SQL di Azure.</value>
28732873
</data>
28742874
<data name="GT_UnsupportedSysTxVersion" xml:space="preserve">
2875-
<value>Il file System.Transactions.dll attualmente caricato non supporta le transazioni globali. Effettuare l'aggiornamento a .NET Framework 4.6.1 o versioni successive.</value>
2875+
<value>Il file System.Transactions.dll attualmente caricato non supporta le transazioni globali. Effettuare l'aggiornamento a .NET Framework 4.6.2 o versioni successive.</value>
28762876
</data>
28772877
<data name="SQL_BatchedUpdatesNotAvailableOnContextConnection" xml:space="preserve">
28782878
<value>L'esecuzione di batch di aggiornamenti non è supportata nella connessione contesto.</value>

src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.ja.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2872,7 +2872,7 @@
28722872
<value>この Azure SQL Database では、グローバル トランザクションは有効ではありません。Azure SQL Database サポートにお問い合わせください。</value>
28732873
</data>
28742874
<data name="GT_UnsupportedSysTxVersion" xml:space="preserve">
2875-
<value>現在読み込まれている System.Transactions.dll では、グローバル トランザクションはサポートされていません。.NET Framework 4.6.1 またはそれ以降にアップグレードしてください。</value>
2875+
<value>現在読み込まれている System.Transactions.dll では、グローバル トランザクションはサポートされていません。.NET Framework 4.6.2 またはそれ以降にアップグレードしてください。</value>
28762876
</data>
28772877
<data name="SQL_BatchedUpdatesNotAvailableOnContextConnection" xml:space="preserve">
28782878
<value>コンテキスト接続では、更新のバッチ処理はサポートされていません。</value>

src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.ko.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2872,7 +2872,7 @@
28722872
<value>이 Azure SQL Database에 대해 전역 트랙잭션을 사용하도록 설정되어 있지 않습니다. 도움이 필요하면 Azure SQL Database 지원 팀에 문의하세요.</value>
28732873
</data>
28742874
<data name="GT_UnsupportedSysTxVersion" xml:space="preserve">
2875-
<value>현재 로드된 System.Transactions.dll은 전역 트랜잭션을 지원하지 않습니다. .NET Framework 4.6.1 이상으로 업그레이드하세요.</value>
2875+
<value>현재 로드된 System.Transactions.dll은 전역 트랜잭션을 지원하지 않습니다. .NET Framework 4.6.2 이상으로 업그레이드하세요.</value>
28762876
</data>
28772877
<data name="SQL_BatchedUpdatesNotAvailableOnContextConnection" xml:space="preserve">
28782878
<value>컨텍스트 연결에서는 일괄 처리 업데이트가 지원되지 않습니다.</value>

src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.pt-BR.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2872,7 +2872,7 @@
28722872
<value>As Transações Globais não estão habilitadas para esse Banco de Dados SQL do Azure. Entre em contato com o suporte do Banco de Dados SQL do Azure para obter assistência.</value>
28732873
</data>
28742874
<data name="GT_UnsupportedSysTxVersion" xml:space="preserve">
2875-
<value>O System.Transactions.dll carregado no momento não dá suporte a Transações Globais. Atualize para o .NET Framework 4.6.1 ou posterior.</value>
2875+
<value>O System.Transactions.dll carregado no momento não dá suporte a Transações Globais. Atualize para o .NET Framework 4.6.2 ou posterior.</value>
28762876
</data>
28772877
<data name="SQL_BatchedUpdatesNotAvailableOnContextConnection" xml:space="preserve">
28782878
<value>Não há suporte para as atualizações em lote na conexão de contexto.</value>

src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2872,7 +2872,7 @@
28722872
<value>Global Transactions are not enabled for this Azure SQL Database. Please contact Azure SQL Database support for assistance.</value>
28732873
</data>
28742874
<data name="GT_UnsupportedSysTxVersion" xml:space="preserve">
2875-
<value>The currently loaded System.Transactions.dll does not support Global Transactions. Please upgrade to .NET Framework 4.6.1 or later.</value>
2875+
<value>The currently loaded System.Transactions.dll does not support Global Transactions. Please upgrade to .NET Framework 4.6.2 or later.</value>
28762876
</data>
28772877
<data name="SQL_BatchedUpdatesNotAvailableOnContextConnection" xml:space="preserve">
28782878
<value>Batching updates is not supported on the context connection.</value>

src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.ru.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2872,7 +2872,7 @@
28722872
<value>Для этой базы данных SQL Azure глобальные транзакции не включены. Обратитесь за помощью в службу поддержки по базам данных SQL Azure.</value>
28732873
</data>
28742874
<data name="GT_UnsupportedSysTxVersion" xml:space="preserve">
2875-
<value>Загруженная библиотека System.Transactions.dll не поддерживает глобальные транзакции. Перейдите на .NET Framework 4.6.1 или более позднюю версию.</value>
2875+
<value>Загруженная библиотека System.Transactions.dll не поддерживает глобальные транзакции. Перейдите на .NET Framework 4.6.2 или более позднюю версию.</value>
28762876
</data>
28772877
<data name="SQL_BatchedUpdatesNotAvailableOnContextConnection" xml:space="preserve">
28782878
<value>Группировка обновлений для контекстного подключения не поддерживается.</value>

src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.zh-Hans.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2872,7 +2872,7 @@
28722872
<value>尚未为此 Azure SQL 数据库启用全局事务。若要获取帮助,请联系 Azure SQL 数据库支持人员。</value>
28732873
</data>
28742874
<data name="GT_UnsupportedSysTxVersion" xml:space="preserve">
2875-
<value>当前加载的 System.Transactions.dll 不支持全局事务。请升级到 .NET Framework 4.6.1 或更高版本。</value>
2875+
<value>当前加载的 System.Transactions.dll 不支持全局事务。请升级到 .NET Framework 4.6.2 或更高版本。</value>
28762876
</data>
28772877
<data name="SQL_BatchedUpdatesNotAvailableOnContextConnection" xml:space="preserve">
28782878
<value>在上下文连接上不支持批处理更新。</value>

src/Microsoft.Data.SqlClient/netfx/src/Resources/Strings.zh-Hant.resx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2872,7 +2872,7 @@
28722872
<value>此 Azure SQL Database 未啟用全域交易。請連絡 Azure SQL Database 支援以取得協助。</value>
28732873
</data>
28742874
<data name="GT_UnsupportedSysTxVersion" xml:space="preserve">
2875-
<value>目前載入的 System.Transactions.dll 不支援全域交易。請升級為 .NET Framework 4.6.1 或更新版本。</value>
2875+
<value>目前載入的 System.Transactions.dll 不支援全域交易。請升級為 .NET Framework 4.6.2 或更新版本。</value>
28762876
</data>
28772877
<data name="SQL_BatchedUpdatesNotAvailableOnContextConnection" xml:space="preserve">
28782878
<value>內容連接上並不支援批次更新。</value>

src/Microsoft.Data.SqlClient/tests/Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
<!--These properties can be modified locally to target .NET version of choice to build and test entire test suite-->
1818
<PropertyGroup>
19-
<TargetNetFxVersion Condition="'$(TargetNetFxVersion)' == ''">net461</TargetNetFxVersion>
19+
<TargetNetFxVersion Condition="'$(TargetNetFxVersion)' == ''">net462</TargetNetFxVersion>
2020
<TargetNetCoreVersion Condition="'$(TargetNetCoreVersion)' == ''">netcoreapp3.1</TargetNetCoreVersion>
2121
</PropertyGroup>
2222

0 commit comments

Comments
 (0)