Add net5.0 support

This commit is contained in:
Igor Tamashchuk 2022-10-05 20:29:24 +03:00
parent f97a238e61
commit 62d648b6c3
No known key found for this signature in database
12 changed files with 916 additions and 909 deletions

View File

@ -1,5 +1,7 @@
<Project>
<PropertyGroup>
<TargetFrameworks>net5.0;net6.0</TargetFrameworks>
<LangVersion>9.0</LangVersion>
<BenchmarkDotNet>0.13.1</BenchmarkDotNet>
<MicrosoftSdk>17.2.0</MicrosoftSdk>
<xUnit>2.4.1</xUnit>

View File

@ -1,9 +1,8 @@
<Project>
<Import Project="deps.props" />
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<PackageId>Standart.Hash.xxHash</PackageId>
<VersionPrefix>4.0.4</VersionPrefix>
<VersionPrefix>4.0.5</VersionPrefix>
<AssemblyName>Standart.Hash.xxHash</AssemblyName>
<AssemblyTitle>Standart.Hash.xxHash</AssemblyTitle>
<Authors>Oleksandr Melnyk</Authors>

View File

@ -2,7 +2,6 @@
<Import Project="..\..\deps.props" />
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<Optimize>true</Optimize>

View File

@ -2,7 +2,6 @@
<Import Project="..\..\deps.props" />
<PropertyGroup>
<IsPackable>false</IsPackable>
<TargetFramework>net6.0</TargetFramework>
<DebugType>full</DebugType>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">

View File

@ -2,8 +2,8 @@ using System;
using System.Text;
using Xunit;
namespace Standart.Hash.xxHash.Test;
namespace Standart.Hash.xxHash.Test
{
public class xxHash128Test
{
[Fact]
@ -111,3 +111,4 @@ public class xxHash128Test
}
}
}

View File

@ -3,7 +3,6 @@
<Import Project="..\..\nuget.props" />
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>

View File

@ -6,8 +6,8 @@
using System.Runtime.CompilerServices;
namespace Standart.Hash.xxHash;
namespace Standart.Hash.xxHash
{
public partial class xxHash32
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@ -187,3 +187,5 @@ public partial class xxHash32
}
}
}
}

View File

@ -6,8 +6,8 @@
using System.Runtime.CompilerServices;
namespace Standart.Hash.xxHash;
namespace Standart.Hash.xxHash
{
public partial class xxHash64
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
@ -249,3 +249,4 @@ public partial class xxHash64
}
}
}
}

View File

@ -2,8 +2,8 @@
using System.Runtime.CompilerServices;
namespace Standart.Hash.xxHash;
namespace Standart.Hash.xxHash
{
public static partial class xxHash32
{
private static readonly uint XXH_PRIME32_1 = 2654435761U;
@ -18,3 +18,4 @@ public static partial class xxHash32
return (x << r) | (x >> (32 - r));
}
}
}

View File

@ -9,8 +9,8 @@ using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
namespace Standart.Hash.xxHash;
namespace Standart.Hash.xxHash
{
public static partial class xxHash32
{
/// <summary>
@ -262,3 +262,4 @@ public static partial class xxHash32
return __inline__XXH32(ptr, length, seed);
}
}
}

View File

@ -2,8 +2,8 @@
using System.Runtime.CompilerServices;
namespace Standart.Hash.xxHash;
namespace Standart.Hash.xxHash
{
public static partial class xxHash64
{
private static readonly ulong XXH_PRIME64_1 = 11400714785074694791UL;
@ -18,3 +18,4 @@ public static partial class xxHash64
return (x << r) | (x >> (64 - r));
}
}
}

View File

@ -9,8 +9,8 @@ using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
namespace Standart.Hash.xxHash;
namespace Standart.Hash.xxHash
{
public static partial class xxHash64
{
/// <summary>
@ -262,3 +262,5 @@ public static partial class xxHash64
return __inline__XXH64(ptr, length, seed);
}
}
}