Skip to content

Commit 43ee7dc

Browse files
author
Martin Boje Carpentier
committed
Added msbuild
1 parent 126f25c commit 43ee7dc

4 files changed

Lines changed: 7 additions & 34 deletions

File tree

.github/workflows/ci-build.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
Build:
1010

1111
name: 'Build and Test'
12-
runs-on: ubuntu-latest
12+
runs-on: windows-latest
1313
defaults:
1414
run:
1515
working-directory: ./src
@@ -18,13 +18,12 @@ jobs:
1818
VSTEST_CONNECTION_TIMEOUT: 900
1919

2020
steps:
21-
- uses: actions/checkout@v2
21+
- uses: actions/checkout@v2
2222
- name: Setup .NET Core
2323
uses: actions/setup-dotnet@v1
2424
with:
2525
dotnet-version: |
2626
3.1.x
27-
4.6.x
2827
5.0.x
2928
6.0.x
3029
- name: Install dependencies

src/GeoJSON.Text/DecimalTenDecimalPlaceComparer.cs

Lines changed: 0 additions & 26 deletions
This file was deleted.

src/GeoJSON.Text/DoubleTenDecimalPlaceComparer.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ namespace GeoJSON.Text
1111
/// <remarks>
1212
/// 10 decimal places equates to accuracy to 11.1 μm.
1313
/// </remarks>
14-
public class DecimalTenDecimalPlaceComparer : IEqualityComparer<decimal>
14+
public class DoubleTenDecimalPlaceComparer : IEqualityComparer<double>
1515
{
16-
public bool Equals(decimal x, decimal y)
16+
public bool Equals(double x, double y)
1717
{
18-
return Math.Abs(x - y) < 0.0000000001m;
18+
return Math.Abs(x - y) < 0.0000000001;
1919
}
2020

21-
public int GetHashCode(decimal obj)
21+
public int GetHashCode(double obj)
2222
{
2323
return obj.GetHashCode();
2424
}

src/GeoJSON.Text/GeoJSON.Text.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

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.0</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.0;net5;net6</TargetFrameworks>
55
<LangVersion>Latest</LangVersion>
66
<Description>.Net types for the GeoJSON RFC to be used with System.Text.Json</Description>
77
<Authors>Matt Hunt</Authors>

0 commit comments

Comments
 (0)