diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index c739ee05e..8d1146b61 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -47,6 +47,7 @@ jobs:
dotnet-version: |
8.0.x
9.0.x
+ 10.0.x
- name: ⚙️ Setup GIT versioning
uses: dotnet/nbgv@v0.4.2
@@ -127,6 +128,7 @@ jobs:
dotnet-version: |
8.0.x
9.0.x
+ 10.0.x
- name: ⚙️ Restore packages and tools
run: |
@@ -220,6 +222,7 @@ jobs:
dotnet-version: |
8.0.x
9.0.x
+ 10.0.x
- name: ⚙️ Setup GIT versioning
uses: dotnet/nbgv@v0.4.2
diff --git a/.github/workflows/docs-deploy.yml b/.github/workflows/docs-deploy.yml
index 1bf98486a..a1b9954ca 100644
--- a/.github/workflows/docs-deploy.yml
+++ b/.github/workflows/docs-deploy.yml
@@ -75,6 +75,7 @@ jobs:
dotnet-version: |
8.0.x
9.0.x
+ 10.0.x
- name: 🎨 Setup color
run: |
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 1a5f19443..d7a70206e 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -60,6 +60,7 @@ jobs:
dotnet-version: |
8.0.x
9.0.x
+ 10.0.x
- name: 🛠️ Update changelog
uses: thomaseizinger/keep-a-changelog-new-release@3.1.0
@@ -96,7 +97,7 @@ jobs:
- name: 🛠️ Packing library in release mode
run: |
dotnet pack src/bunit/ -c Release --property:PackageOutputPath=${GITHUB_WORKSPACE}/packages -p:ContinuousIntegrationBuild=true -p:publicrelease=true
- dotnet pack src/bunit.template/ -c Release --property:PackageOutputPath=${GITHUB_WORKSPACE}/packages -p:ContinuousIntegrationBuild=true -p:publicrelease=true
+ dotnet pack src/bunit.template/ -c Release --property:PackageOutputPath=${GITHUB_WORKSPACE}/packages -p:ContinuousIntegrationBuild=true -p:publicrelease=true
dotnet pack src/bunit.generators/ -c Release --property:PackageOutputPath=${GITHUB_WORKSPACE}/packages -p:ContinuousIntegrationBuild=true -p:publicrelease=true
dotnet pack src/bunit.web.query/ -c Release --property:PackageOutputPath=${GITHUB_WORKSPACE}/packages -p:ContinuousIntegrationBuild=true -p:publicrelease=true
diff --git a/Directory.Packages.props b/Directory.Packages.props
index c828e4847..0313ffddb 100644
--- a/Directory.Packages.props
+++ b/Directory.Packages.props
@@ -28,7 +28,7 @@
-
+
@@ -57,6 +57,19 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/docs/samples/components/bunit.docs.samples.csproj b/docs/samples/components/bunit.docs.samples.csproj
index a1265007d..8d0c766a6 100644
--- a/docs/samples/components/bunit.docs.samples.csproj
+++ b/docs/samples/components/bunit.docs.samples.csproj
@@ -1,7 +1,7 @@
- net8.0;net9.0
+ net8.0;net9.0;net10.0
Bunit.Docs.Samples
enable
CA1014,NU5104
diff --git a/global.json b/global.json
index 18562b58c..83105ca8e 100644
--- a/global.json
+++ b/global.json
@@ -1,6 +1,6 @@
{
"sdk": {
"rollForward": "latestMajor",
- "allowPrerelease": false
+ "allowPrerelease": true
}
}
diff --git a/src/bunit.web.query/bunit.web.query.csproj b/src/bunit.web.query/bunit.web.query.csproj
index 58df84a4c..d684833d3 100644
--- a/src/bunit.web.query/bunit.web.query.csproj
+++ b/src/bunit.web.query/bunit.web.query.csproj
@@ -1,7 +1,7 @@
- net8.0;net9.0
+ net8.0;net9.0;net10.0
Bunit
Bunit.Web.Query
@@ -25,7 +25,6 @@
-
diff --git a/src/bunit/JSInterop/Implementation/BunitJSObjectReference.cs b/src/bunit/JSInterop/Implementation/BunitJSObjectReference.cs
index aaaf19ede..6c5025516 100644
--- a/src/bunit/JSInterop/Implementation/BunitJSObjectReference.cs
+++ b/src/bunit/JSInterop/Implementation/BunitJSObjectReference.cs
@@ -23,6 +23,35 @@ public ValueTask InvokeAsync(string identifier, object?[]? args)
public ValueTask InvokeAsync(string identifier, CancellationToken cancellationToken, object?[]? args)
=> JSInterop.HandleInvokeAsync(identifier, cancellationToken, args);
+#if NET10_0_OR_GREATER
+ ///
+ public ValueTask InvokeNewAsync(string identifier, object?[]? args) => throw new NotImplementedException();
+
+ ///
+ public ValueTask InvokeNewAsync(string identifier, CancellationToken cancellationToken, object?[]? args) => throw new NotImplementedException();
+
+ ///
+ public ValueTask GetValueAsync(string identifier) => throw new NotImplementedException();
+
+ ///
+ public ValueTask GetValueAsync(string identifier, CancellationToken cancellationToken) => throw new NotImplementedException();
+
+ ///
+ public ValueTask SetValueAsync(string identifier, TValue value) => throw new NotImplementedException();
+
+ ///
+ public ValueTask SetValueAsync(string identifier, TValue value, CancellationToken cancellationToken) => throw new NotImplementedException();
+
+ ///
+ public IJSInProcessObjectReference InvokeNew(string identifier, object?[]? args) => throw new NotImplementedException();
+
+ ///
+ public TValue GetValue(string identifier) => throw new NotImplementedException();
+
+ ///
+ public void SetValue(string identifier, TValue value) => throw new NotImplementedException();
+#endif
+
///
public TValue Invoke(string identifier, params object?[]? args)
=> JSInterop.HandleInvoke(identifier, args);
diff --git a/src/bunit/JSInterop/Implementation/BunitJSRuntime.cs b/src/bunit/JSInterop/Implementation/BunitJSRuntime.cs
index ef919cd1f..0314007cf 100644
--- a/src/bunit/JSInterop/Implementation/BunitJSRuntime.cs
+++ b/src/bunit/JSInterop/Implementation/BunitJSRuntime.cs
@@ -23,6 +23,35 @@ public ValueTask InvokeAsync(string identifier, object?[]? args)
public ValueTask InvokeAsync(string identifier, CancellationToken cancellationToken, object?[]? args)
=> JSInterop.HandleInvokeAsync(identifier, cancellationToken, args);
+#if NET10_0_OR_GREATER
+ ///
+ public ValueTask InvokeNewAsync(string identifier, object?[]? args) => throw new NotImplementedException();
+
+ ///
+ public ValueTask InvokeNewAsync(string identifier, CancellationToken cancellationToken, object?[]? args) => throw new NotImplementedException();
+
+ ///
+ public ValueTask GetValueAsync(string identifier) => throw new NotImplementedException();
+
+ ///
+ public ValueTask GetValueAsync(string identifier, CancellationToken cancellationToken) => throw new NotImplementedException();
+
+ ///
+ public ValueTask SetValueAsync(string identifier, TValue value) => throw new NotImplementedException();
+
+ ///
+ public ValueTask SetValueAsync(string identifier, TValue value, CancellationToken cancellationToken) => throw new NotImplementedException();
+
+ ///
+ public IJSInProcessObjectReference InvokeNew(string identifier, params object?[]? args) => throw new NotImplementedException();
+
+ ///
+ public TValue GetValue(string identifier) => throw new NotImplementedException();
+
+ ///
+ public void SetValue(string identifier, TValue value) => throw new NotImplementedException();
+#endif
+
///
public TResult Invoke(string identifier, params object?[]? args)
=> JSInterop.HandleInvoke(identifier, args);
diff --git a/src/bunit/bunit.csproj b/src/bunit/bunit.csproj
index cbaabe74b..3a5511a05 100644
--- a/src/bunit/bunit.csproj
+++ b/src/bunit/bunit.csproj
@@ -1,6 +1,6 @@
- net8.0;net9.0
+ net8.0;net9.0;net10.0
Bunit
@@ -41,7 +41,6 @@
-
diff --git a/tests/bunit.testassets/bunit.testassets.csproj b/tests/bunit.testassets/bunit.testassets.csproj
index 402f2b25e..9d5c0f6d4 100644
--- a/tests/bunit.testassets/bunit.testassets.csproj
+++ b/tests/bunit.testassets/bunit.testassets.csproj
@@ -1,7 +1,7 @@
- net8.0;net9.0
+ net8.0;net9.0;net10.0
Bunit.TestAssets
Bunit.TestAssets
Library
@@ -23,7 +23,6 @@
-
diff --git a/tests/bunit.tests/bunit.tests.csproj b/tests/bunit.tests/bunit.tests.csproj
index baefc5c5e..45f6e8727 100644
--- a/tests/bunit.tests/bunit.tests.csproj
+++ b/tests/bunit.tests/bunit.tests.csproj
@@ -1,7 +1,7 @@
- net8.0;net9.0
+ net8.0;net9.0;net10.0
Bunit
Bunit.Tests
diff --git a/tests/bunit.web.query.tests/bunit.web.query.tests.csproj b/tests/bunit.web.query.tests/bunit.web.query.tests.csproj
index acf1d553e..0c625097d 100644
--- a/tests/bunit.web.query.tests/bunit.web.query.tests.csproj
+++ b/tests/bunit.web.query.tests/bunit.web.query.tests.csproj
@@ -1,7 +1,7 @@
- net8.0;net9.0
+ net8.0;net9.0;net10.0
Bunit
Bunit.Web.Query.Tests