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.

0 commit comments

Comments
 (0)