Skip to content

Commit 46bb7ef

Browse files
authored
Target net6 (#48)
1 parent 13173f1 commit 46bb7ef

5 files changed

Lines changed: 9 additions & 18 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ ImageHash
55
</h1>
66
<div align="center">
77

8-
[![Build status](https://ci.appveyor.com/api/projects/status/891pi650ra2ori5t/branch/develop?svg=true)](https://ci.appveyor.com/project/coenm/imagehash/branch/develop) [![Coverage](https://codecov.io/gh/coenm/imagehash/branch/develop/graph/badge.svg)](https://codecov.io/gh/coenm/imagehash) [![NuGet](https://img.shields.io/nuget/v/CoenM.ImageSharp.ImageHash.svg)](https://www.nuget.org/packages/CoenM.ImageSharp.ImageHash/) [![MyGet Pre Release](https://img.shields.io/myget/coenm/vpre/CoenM.ImageSharp.ImageHash.svg?label=myget)](https://www.myget.org/feed/Packages/coenm/)
8+
[![Build Status](https://dev.azure.com/cmunckhof/Open%20Source/_apis/build/status/ImageHash/ImageHash.Build?branchName=develop)](https://dev.azure.com/cmunckhof/Open%20Source/_build/latest?definitionId=22&branchName=develop) [![Coverage](https://codecov.io/gh/coenm/imagehash/branch/develop/graph/badge.svg)](https://codecov.io/gh/coenm/imagehash) [![NuGet](https://img.shields.io/nuget/v/CoenM.ImageSharp.ImageHash.svg)](https://www.nuget.org/packages/CoenM.ImageSharp.ImageHash/)
99

1010
</div>
1111
.NET Standard library containing multiple algorithms to calculate perceptual hashes of images and to calculate similarity using those hashes.

src/Directory.Build.props

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,5 @@
4242
</PropertyGroup>
4343
</Target>
4444

45-
<!-- <Target Name="PrepareReleaseNotes2" BeforeTargets="GenerateNuspec" DependsOnTargets="GetBuildVersion">
46-
47-
48-
<PropertyGroup>
49-
<Description>$(Description)
50-
TEST
51-
</Description>
52-
<PackageDescription>$(Description)</PackageDescription>
53-
</PropertyGroup>
54-
</Target> -->
55-
5645
<Import Project="$([MSBuild]::GetPathOfFileAbove('Directory.Build.props', '$(MSBuildThisFileDirectory)../'))" />
5746
</Project>

src/ImageHash/ImageHash.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
32
<PropertyGroup>
4-
<TargetFrameworks>netstandard1.3;netstandard2.0;netcoreapp2.1;netcoreapp3.1;net5</TargetFrameworks>
3+
<TargetFrameworks>netstandard1.3;netstandard2.0;netcoreapp2.1;netcoreapp3.1;net5;net6</TargetFrameworks>
54
<TargetFrameworks Condition="'$(OS)' != 'Unix'">$(TargetFrameworks);net461;net472</TargetFrameworks>
65
<Description>Perceptual image hashing in netstandard using the ImageSharp library. Includes three hashing algorithms (AverageHash, DifferenceHash, and PerceptualHash).</Description>
76
<RootNamespace>CoenM.ImageHash</RootNamespace>

src/ImageHash/PackageDescription.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
## API
1+
# ImageHash
22

3-
### Calculate image hash
3+
Perceptual image hashing in netstandard using the ImageSharp library. Includes three hashing algorithms (AverageHash, DifferenceHash, and PerceptualHash).
4+
5+
## Calculate image hash
46

57
```cs
68
var hashAlgorithm = new AverageHash();
@@ -14,7 +16,7 @@ using var stream = File.OpenRead(filename);
1416
ulong imageHash = hashAlgorithm.Hash(stream);
1517
```
1618

17-
### Calculate image similarity
19+
## Calculate image similarity
1820
Note that to calculate the image similarity, both image hashes should have been calculated using the same hash algorihm.
1921

2022
```cs

tests/ImageHash.Test/ImageHash.Test.csproj

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

33
<PropertyGroup>
4-
<TargetFrameworks>netcoreapp2.1;netcoreapp3.1;net5;</TargetFrameworks>
4+
<TargetFrameworks>netcoreapp2.1;netcoreapp3.1;net5;net6</TargetFrameworks>
5+
<TargetFrameworks Condition="'$(OS)' != 'Unix'">$(TargetFrameworks);net461;net472</TargetFrameworks>
56
<IsPackable>false</IsPackable>
67
<AssemblyName>CoenM.ImageSharp.ImageHash.Test</AssemblyName>
78
<RootNamespace>CoenM.ImageHash.Test</RootNamespace>

0 commit comments

Comments
 (0)