diff --git a/src/Bugsnag.AspNet.Core/Bugsnag.AspNet.Core.csproj b/src/Bugsnag.AspNet.Core/Bugsnag.AspNet.Core.csproj
index 54ae274..b44b123 100644
--- a/src/Bugsnag.AspNet.Core/Bugsnag.AspNet.Core.csproj
+++ b/src/Bugsnag.AspNet.Core/Bugsnag.AspNet.Core.csproj
@@ -8,18 +8,16 @@
-
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
diff --git a/src/Bugsnag.AspNet.WebApi/Bugsnag.AspNet.WebApi.csproj b/src/Bugsnag.AspNet.WebApi/Bugsnag.AspNet.WebApi.csproj
index 3d64b99..a19dc76 100644
--- a/src/Bugsnag.AspNet.WebApi/Bugsnag.AspNet.WebApi.csproj
+++ b/src/Bugsnag.AspNet.WebApi/Bugsnag.AspNet.WebApi.csproj
@@ -14,7 +14,7 @@
-
-
+
+
diff --git a/tests/Bugsnag.AspNet.Core.Tests/Bugsnag.AspNet.Core.Tests.csproj b/tests/Bugsnag.AspNet.Core.Tests/Bugsnag.AspNet.Core.Tests.csproj
index 69d29e5..acd98b6 100644
--- a/tests/Bugsnag.AspNet.Core.Tests/Bugsnag.AspNet.Core.Tests.csproj
+++ b/tests/Bugsnag.AspNet.Core.Tests/Bugsnag.AspNet.Core.Tests.csproj
@@ -1,17 +1,20 @@
- net462;netcoreapp3.1;net6.0;net8.0
+ net462;net6.0;net8.0
win10-x64
false
7.1
false
-
-
-
-
-
+
+
+
+
+
+ all
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
diff --git a/tests/Bugsnag.AspNet.Core.Tests/WebHostTests.cs b/tests/Bugsnag.AspNet.Core.Tests/WebHostTests.cs
index dd4f3bf..8fd1c96 100644
--- a/tests/Bugsnag.AspNet.Core.Tests/WebHostTests.cs
+++ b/tests/Bugsnag.AspNet.Core.Tests/WebHostTests.cs
@@ -3,6 +3,7 @@
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.TestHost;
using Microsoft.Extensions.DependencyInjection;
+using System.Threading.Tasks;
using Xunit;
namespace Bugsnag.AspNet.Core.Tests
@@ -10,7 +11,7 @@ namespace Bugsnag.AspNet.Core.Tests
public class WebHostTests
{
[Fact]
- public async void TestWithNoExceptions()
+ public async Task TestWithNoExceptions()
{
var builder = new WebHostBuilder()
.ConfigureServices(services => services.AddBugsnag(config => { config.ApiKey = "123456"; }))
@@ -28,7 +29,7 @@ public async void TestWithNoExceptions()
}
[Fact]
- public async void TestWithDeveloperExceptionPage()
+ public async Task TestWithDeveloperExceptionPage()
{
var bugsnag = new Bugsnag.Tests.TestServer();
bugsnag.Start();
diff --git a/tests/Bugsnag.AspNet.Tests/Bugsnag.AspNet.Tests.csproj b/tests/Bugsnag.AspNet.Tests/Bugsnag.AspNet.Tests.csproj
index c5d5e3f..153bbe2 100644
--- a/tests/Bugsnag.AspNet.Tests/Bugsnag.AspNet.Tests.csproj
+++ b/tests/Bugsnag.AspNet.Tests/Bugsnag.AspNet.Tests.csproj
@@ -9,9 +9,12 @@
-
-
-
+
+
+
+ all
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
diff --git a/tests/Bugsnag.AspNet.WebApi.Tests/Bugsnag.AspNet.WebApi.Tests.csproj b/tests/Bugsnag.AspNet.WebApi.Tests/Bugsnag.AspNet.WebApi.Tests.csproj
index 201997d..2264114 100644
--- a/tests/Bugsnag.AspNet.WebApi.Tests/Bugsnag.AspNet.WebApi.Tests.csproj
+++ b/tests/Bugsnag.AspNet.WebApi.Tests/Bugsnag.AspNet.WebApi.Tests.csproj
@@ -6,10 +6,13 @@
7.1
-
-
-
-
+
+
+
+
+ all
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
diff --git a/tests/Bugsnag.AspNet.WebApi.Tests/WebHostTests.cs b/tests/Bugsnag.AspNet.WebApi.Tests/WebHostTests.cs
index ea063cc..eb852c5 100644
--- a/tests/Bugsnag.AspNet.WebApi.Tests/WebHostTests.cs
+++ b/tests/Bugsnag.AspNet.WebApi.Tests/WebHostTests.cs
@@ -2,6 +2,7 @@
using System;
using System.Linq;
using System.Net.Http;
+using System.Threading.Tasks;
using System.Web.Http;
using Xunit;
@@ -20,7 +21,7 @@ public IHttpActionResult Test()
}
[Fact]
- public async void Test()
+ public async Task Test()
{
var bugsnagServer = new TestServer();
diff --git a/tests/Bugsnag.ConfigurationSection.Tests/Bugsnag.ConfigurationSection.Tests.csproj b/tests/Bugsnag.ConfigurationSection.Tests/Bugsnag.ConfigurationSection.Tests.csproj
index 1a66d3d..7d350a7 100644
--- a/tests/Bugsnag.ConfigurationSection.Tests/Bugsnag.ConfigurationSection.Tests.csproj
+++ b/tests/Bugsnag.ConfigurationSection.Tests/Bugsnag.ConfigurationSection.Tests.csproj
@@ -9,9 +9,12 @@
-
-
-
+
+
+
+ all
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
diff --git a/tests/Bugsnag.Tests.Server/Bugsnag.Tests.Server.csproj b/tests/Bugsnag.Tests.Server/Bugsnag.Tests.Server.csproj
index 1b0693d..f7625cc 100644
--- a/tests/Bugsnag.Tests.Server/Bugsnag.Tests.Server.csproj
+++ b/tests/Bugsnag.Tests.Server/Bugsnag.Tests.Server.csproj
@@ -6,7 +6,7 @@
7.1
-
-
+
+
diff --git a/tests/Bugsnag.Tests/Bugsnag.Tests.csproj b/tests/Bugsnag.Tests/Bugsnag.Tests.csproj
index 28e344f..4a1ecd1 100644
--- a/tests/Bugsnag.Tests/Bugsnag.Tests.csproj
+++ b/tests/Bugsnag.Tests/Bugsnag.Tests.csproj
@@ -1,15 +1,18 @@
- net462;netcoreapp3.1;net6.0;net8.0
+ net462;net6.0;net8.0
win10-x64
false
7.1
false
-
-
-
+
+
+
+ all
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
diff --git a/tests/Bugsnag.Tests/ClientTests.cs b/tests/Bugsnag.Tests/ClientTests.cs
index 9903967..7384ed9 100644
--- a/tests/Bugsnag.Tests/ClientTests.cs
+++ b/tests/Bugsnag.Tests/ClientTests.cs
@@ -10,7 +10,7 @@ namespace Bugsnag.Tests
public class ClientTests
{
[Fact]
- public async void TestThrownException()
+ public async Task TestThrownException()
{
var server = new TestServer();
diff --git a/tests/Bugsnag.Tests/SessionTrackingTests.cs b/tests/Bugsnag.Tests/SessionTrackingTests.cs
index 2be71cc..44361f1 100644
--- a/tests/Bugsnag.Tests/SessionTrackingTests.cs
+++ b/tests/Bugsnag.Tests/SessionTrackingTests.cs
@@ -1,5 +1,6 @@
using System;
using System.Threading;
+using System.Threading.Tasks;
using Xunit;
namespace Bugsnag.Tests
@@ -15,7 +16,7 @@ public void CurrentSessionIsNullWithoutBeingSet()
}
[Fact]
- public async void CurrentSessionCanBeSet()
+ public async Task CurrentSessionCanBeSet()
{
var server = new TestServer();
@@ -33,7 +34,7 @@ public async void CurrentSessionCanBeSet()
}
[Fact]
- public async void EmptySessionsPayloadsAreNotSent()
+ public async Task EmptySessionsPayloadsAreNotSent()
{
var server = new TestServer();
diff --git a/tests/Bugsnag.Tests/ThreadQueueDeliveryTests.cs b/tests/Bugsnag.Tests/ThreadQueueDeliveryTests.cs
index 342ab1c..ee966be 100644
--- a/tests/Bugsnag.Tests/ThreadQueueDeliveryTests.cs
+++ b/tests/Bugsnag.Tests/ThreadQueueDeliveryTests.cs
@@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Net;
+using System.Threading.Tasks;
using Xunit;
namespace Bugsnag.Tests
@@ -9,7 +10,7 @@ namespace Bugsnag.Tests
public class ThreadQueueDeliveryTests
{
[Fact]
- public async void Test()
+ public async Task Test()
{
var numberOfRequests = 500;
diff --git a/tests/Bugsnag.Tests/WebRequestTests.cs b/tests/Bugsnag.Tests/WebRequestTests.cs
index b496987..66fcfd1 100644
--- a/tests/Bugsnag.Tests/WebRequestTests.cs
+++ b/tests/Bugsnag.Tests/WebRequestTests.cs
@@ -9,7 +9,7 @@ namespace Bugsnag.Tests
public class WebRequestTests
{
[Fact]
- public async void Test()
+ public async Task Test()
{
var numerOfRequests = 1;
var server = new TestServer();