Skip to content

Commit 6f18f9d

Browse files
Merge pull request #15 from stefannikolei/net50
add net50
2 parents 582bf5a + c25e2ae commit 6f18f9d

File tree

4 files changed

+17
-5
lines changed

4 files changed

+17
-5
lines changed

.github/workflows/build-and-test.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,18 @@ jobs:
1212
strategy:
1313
matrix:
1414
options:
15+
- os: ubuntu-latest
16+
framework: net5.0
17+
runtime: -x64
18+
codecov: false
19+
- os: macos-latest
20+
framework: net5.0
21+
runtime: -x64
22+
codecov: false
23+
- os: windows-latest
24+
framework: net5.0
25+
runtime: -x64
26+
codecov: true
1527
- os: ubuntu-latest
1628
framework: netcoreapp3.1
1729
runtime: -x64

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ To include internals like `Guard.cs`, `MathF`, and `HashCode` into your project
156156
+===================+=======+==========+=====================+=============+=================+====================+==============+=========+============|
157157
| SUPPORTS | MATHF | HASHCODE | EXTENDED_INTRINSICS | SPAN_STREAM | ENCODING_STRING | RUNTIME_INTRINSICS | CODECOVERAGE | HOTPATH | CREATESPAN |
158158
+===================+=======+==========+=====================+=============+=================+====================+==============+=========|============|
159-
| netcoreapp3.1 | Y | Y | Y | Y | Y | Y | Y | Y | Y |
159+
| >=netcoreapp3.1 | Y | Y | Y | Y | Y | Y | Y | Y | Y |
160160
| netcoreapp2.1 | Y | Y | Y | Y | Y | N | Y | N | Y |
161161
| netcoreapp2.0 | Y | N | N | N | N | N | Y | N | Y |
162162
| netstandard2.1 | Y | Y | N | Y | Y | N | Y | N | Y |
@@ -166,7 +166,7 @@ To include internals like `Guard.cs`, `MathF`, and `HashCode` into your project
166166
+===================+=======+==========+=====================+=============+=================+====================+==============+=========|============|
167167
-->
168168

169-
<PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp3.1'">
169+
<PropertyGroup Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)','netcoreapp3.1'))">
170170
<DefineConstants>$(DefineConstants);SUPPORTS_MATHF</DefineConstants>
171171
<DefineConstants>$(DefineConstants);SUPPORTS_HASHCODE</DefineConstants>
172172
<DefineConstants>$(DefineConstants);SUPPORTS_EXTENDED_INTRINSICS</DefineConstants>

msbuild/props/SixLabors.Global.props

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
+===================+=======+==========+=====================+=============+=================+====================+==============+=========+============|
103103
| SUPPORTS | MATHF | HASHCODE | EXTENDED_INTRINSICS | SPAN_STREAM | ENCODING_STRING | RUNTIME_INTRINSICS | CODECOVERAGE | HOTPATH | CREATESPAN |
104104
+===================+=======+==========+=====================+=============+=================+====================+==============+=========|============|
105-
| netcoreapp3.1 | Y | Y | Y | Y | Y | Y | Y | Y | Y |
105+
| >=netcoreapp3.1 | Y | Y | Y | Y | Y | Y | Y | Y | Y |
106106
| netcoreapp2.1 | Y | Y | Y | Y | Y | N | Y | N | Y |
107107
| netcoreapp2.0 | Y | N | N | N | N | N | Y | N | Y |
108108
| netstandard2.1 | Y | Y | N | Y | Y | N | Y | N | Y |
@@ -152,7 +152,7 @@
152152
<DefineConstants>$(DefineConstants);SUPPORTS_CREATESPAN</DefineConstants>
153153
</PropertyGroup>
154154
</When>
155-
<When Condition="'$(TargetFramework)' == 'netcoreapp3.1'">
155+
<When Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)','netcoreapp3.1'))">
156156
<!--NETCORE 3.1. NET5.0, and future versions will fallback to this as the closest target.-->
157157
<PropertyGroup>
158158
<DefineConstants>$(DefineConstants);SUPPORTS_MATHF</DefineConstants>

tests/SharedInfrastructure.Tests/SharedInfrastructure.Tests.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>netcoreapp3.1;netcoreapp2.1;netcoreapp2.0;net472;net46</TargetFrameworks>
4+
<TargetFrameworks>net5.0;netcoreapp3.1;netcoreapp2.1;netcoreapp2.0;net472;net46</TargetFrameworks>
55
<AssemblyName>SharedInfrastructure.Tests</AssemblyName>
66
<RootNamespace>SharedInfrastructure.Tests</RootNamespace>
77
</PropertyGroup>

0 commit comments

Comments
 (0)