Skip to content

Commit 23e0512

Browse files
committed
feat: add explicit support for net6 preview 3
1 parent 054ecd2 commit 23e0512

34 files changed

+77
-35
lines changed

.github/workflows/docs-deploy.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,11 @@ jobs:
6363
with:
6464
dotnet-version: '5.0.x'
6565

66+
- name: ⚙️ Setup dotnet 6.0.x
67+
uses: actions/setup-dotnet@v1
68+
with:
69+
dotnet-version: '6.0.x'
70+
6671
- name: 🛠️ Building bUnit
6772
run: dotnet build /p:PublicRelease=true
6873

.github/workflows/release-preview.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ jobs:
2727
uses: actions/setup-dotnet@v1
2828
with:
2929
dotnet-version: '5.0.x'
30+
31+
- name: ⚙️ Setup dotnet 6.0.x
32+
uses: actions/setup-dotnet@v1
33+
with:
34+
dotnet-version: '6.0.x'
3035

3136
- name: 🛠️ Update tokens in project files
3237
uses: cschleiden/replace-tokens@v1

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ jobs:
6464
with:
6565
dotnet-version: '5.0.x'
6666

67+
- name: ⚙️ Setup dotnet 6.0.x
68+
uses: actions/setup-dotnet@v1
69+
with:
70+
dotnet-version: '6.0.x'
71+
6772
- name: 🛠️ Update changelog
6873
uses: thomaseizinger/[email protected]
6974
with:

.github/workflows/verification.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ jobs:
4242
with:
4343
dotnet-version: '5.0.x'
4444

45+
- name: ⚙️ Setup dotnet 6.0.x
46+
uses: actions/setup-dotnet@v1
47+
with:
48+
dotnet-version: '6.0.x'
49+
4550
- name: ⚙️ Setup GIT versioning
4651
uses: dotnet/[email protected]
4752
with:

Directory.Build.props

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<PropertyGroup Label="Configuration variables">
55
<DotNet3Version>3.1.1</DotNet3Version>
66
<DotNet5Version>5.0.0</DotNet5Version>
7+
<DotNet6Version>6.0.0-preview.3.*</DotNet6Version>
78
</PropertyGroup>
89

910
<!-- Solution wide properties -->
@@ -67,4 +68,12 @@
6768
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="$(DotNet5Version)" />
6869
</ItemGroup>
6970

71+
<ItemGroup Condition="'$(TargetFramework)' == 'net6.0' AND $(MSBuildProjectName) != 'bunit.template' AND $(MSBuildProjectName) != 'bunit'">
72+
<PackageReference Include="Microsoft.AspNetCore.Components.Authorization" Version="$(DotNet6Version)" />
73+
<PackageReference Include="Microsoft.Extensions.Logging" Version="$(DotNet6Version)" />
74+
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="$(DotNet6Version)" />
75+
<PackageReference Include="Microsoft.AspNetCore.Components" Version="$(DotNet6Version)" />
76+
<PackageReference Include="Microsoft.AspNetCore.Components.Web" Version="$(DotNet6Version)" />
77+
</ItemGroup>
78+
7079
</Project>

bunit.sln

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,10 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "bunit.web.testcomponents.te
5353
EndProject
5454
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".workflows", ".workflows", "{3B2F3419-5336-4147-A212-E19091195203}"
5555
ProjectSection(SolutionItems) = preProject
56+
.github\workflows\docs-deploy.yml = .github\workflows\docs-deploy.yml
57+
.github\workflows\prepare-release.yml = .github\workflows\prepare-release.yml
58+
.github\workflows\release-preview.yml = .github\workflows\release-preview.yml
59+
.github\workflows\release.yml = .github\workflows\release.yml
5660
.github\workflows\verification.yml = .github\workflows\verification.yml
5761
EndProjectSection
5862
EndProject

global.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"sdk": {
33
"rollForward": "latestMajor",
4-
"allowPrerelease": false
4+
"allowPrerelease": true
55
}
6-
}
6+
}

src/bunit.core/bunit.core.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.1;net5.0</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.1;net5.0;net6.0</TargetFrameworks>
55
<RootNamespace>Bunit</RootNamespace>
66
<AssemblyName>Bunit.Core</AssemblyName>
77
</PropertyGroup>

src/bunit.web/Asserting/FocusAsyncAssertJSInteropExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if NET5_0
1+
#if !NETSTANDARD2_1
22
using System.Collections.Generic;
33
using Bunit.JSInterop.InvocationHandlers.Implementation;
44
using Microsoft.AspNetCore.Components;

src/bunit.web/EventDispatchExtensions/DetailsElementEventDispatcherExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#if NET5_0
1+
#if !NETSTANDARD2_1
22
using System;
33
using System.Threading.Tasks;
44
using AngleSharp.Dom;

0 commit comments

Comments
 (0)