Skip to content

Commit a42ea70

Browse files
committed
Add net471 build. Fixes #595
1 parent 7435ba3 commit a42ea70

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

src/MySqlConnector/Core/Row.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ public int GetValues(object[] values)
334334

335335
protected static Guid CreateGuidFromBytes(MySqlGuidFormat guidFormat, ReadOnlySpan<byte> bytes)
336336
{
337-
#if NET45 || NET461 || NETSTANDARD1_3 || NETSTANDARD2_0
337+
#if NET45 || NET461 || NET471 || NETSTANDARD1_3 || NETSTANDARD2_0
338338
if (guidFormat == MySqlGuidFormat.Binary16)
339339
return new Guid(new[] { bytes[3], bytes[2], bytes[1], bytes[0], bytes[5], bytes[4], bytes[7], bytes[6], bytes[8], bytes[9], bytes[10], bytes[11], bytes[12], bytes[13], bytes[14], bytes[15] });
340340
if (guidFormat == MySqlGuidFormat.TimeSwapBinary16)

src/MySqlConnector/MySqlConnector.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net45;net461;netstandard1.3;netstandard2.0;netcoreapp2.1</TargetFrameworks>
4+
<TargetFrameworks>net45;net461;net471;netstandard1.3;netstandard2.0;netcoreapp2.1</TargetFrameworks>
55
<Title>Async MySQL ADO.NET Connector</Title>
66
<Description>A truly async MySQL ADO.NET provider, supporting MySQL Server, MariaDB, Percona Server, Amazon Aurora, Azure Database for MySQL and more.</Description>
77
<Copyright>Copyright 2016–2018 Bradley Grainger</Copyright>
@@ -12,7 +12,7 @@
1212
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
1313
</PropertyGroup>
1414

15-
<ItemGroup Condition=" '$(TargetFramework)' == 'net45' OR '$(TargetFramework)' == 'net461' ">
15+
<ItemGroup Condition=" '$(TargetFramework)' == 'net45' OR '$(TargetFramework)' == 'net461' OR '$(TargetFramework)' == 'net471' ">
1616
<PackageReference Include="System.Buffers" Version="4.4.0" />
1717
<PackageReference Include="System.Memory" Version="4.5.0" />
1818
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.3.0" />

src/MySqlConnector/Utilities/Utility.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public static void Dispose<T>(ref T disposable)
2828
public static string FormatInvariant(this string format, params object[] args) =>
2929
string.Format(CultureInfo.InvariantCulture, format, args);
3030

31-
#if NET45 || NET461 || NETSTANDARD1_3 || NETSTANDARD2_0
31+
#if NET45 || NET461 || NET471 || NETSTANDARD1_3 || NETSTANDARD2_0
3232
public static string GetString(this Encoding encoding, ReadOnlySpan<byte> span)
3333
{
3434
if (span.Length == 0)
@@ -54,7 +54,7 @@ public static unsafe void GetBytes(this Encoding encoding, ReadOnlySpan<char> ch
5454
}
5555
#endif
5656

57-
#if NET461 || NETSTANDARD2_0
57+
#if NET461 || NET471 || NETSTANDARD2_0
5858
public static unsafe void Convert(this Encoder encoder, ReadOnlySpan<char> chars, Span<byte> bytes, bool flush, out int charsUsed, out int bytesUsed, out bool completed)
5959
{
6060
fixed (char* charsPtr = chars)

tests/SideBySide/SideBySide.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
<Project Sdk="Microsoft.NET.Sdk">
1+
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup Condition=" '$(Configuration)' != 'Baseline' ">
4-
<TargetFrameworks>net452;net461;netcoreapp1.1.2;netcoreapp2.0;netcoreapp2.1</TargetFrameworks>
4+
<TargetFrameworks>net452;net461;net472;netcoreapp1.1.2;netcoreapp2.0;netcoreapp2.1</TargetFrameworks>
55
</PropertyGroup>
66

77
<PropertyGroup Condition=" '$(Configuration)' == 'Baseline' ">
8-
<TargetFrameworks>net461</TargetFrameworks>
8+
<TargetFrameworks>net472</TargetFrameworks>
99
<DefineConstants>BASELINE</DefineConstants>
1010
</PropertyGroup>
1111

@@ -46,7 +46,7 @@
4646
<Compile Remove="TransactionScopeTests.cs" />
4747
</ItemGroup>
4848

49-
<ItemGroup Condition=" '$(TargetFramework)' == 'net452' OR '$(TargetFramework)' == 'net461' ">
49+
<ItemGroup Condition=" '$(TargetFramework)' == 'net452' OR '$(TargetFramework)' == 'net461' OR '$(TargetFramework)' == 'net472' ">
5050
<Reference Include="System" />
5151
<Reference Include="System.Transactions" />
5252
<Reference Include="Microsoft.CSharp" />

0 commit comments

Comments
 (0)