Commit 33dd3c8
Migrate from .NET 8 to .NET 10 (#3129)
* Migrate from .NET 8 to .NET 10
.NET 10 is now the current LTS release. This updates all project files,
CI workflows, and related settings to target .NET 10.
- Update TargetFramework(s) from net8.0 to net10.0 across all projects
- Update LangVersion from 12 to 14 (C# 14 ships with .NET 10)
- Update AnalysisLevel from 8.0-Recommended to 10.0-Recommended
- Update Microsoft.Extensions.Logging from 8.0.0 to 10.0.0
- Update all GitHub Actions workflows to use .NET SDK 10.0.x
- Fix PushNugetPackageToIntNugetOrg workflow (was still on 7.0.x)
- Remove Microsoft.CSharp and System.Net.Http packages from tests
(now included in .NET 10, NU1510 errors)
- Suppress ASPDEPR004/ASPDEPR008 in TestServer for deprecated
IWebHost/WebHostBuilder APIs
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Update WebDriverBiDi-Relaxed to 0.0.42 for .NET 10 compatibility
v0.0.42 fixes a System.Text.Json source generator error where
[JsonInclude] on protected properties in RemoteReference is rejected
by .NET 10 (properties changed to protected internal).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Fix hardcoded net8.0 path in FixturesTests
The subprocess working directory path was hardcoded to net8.0 instead
of net10.0, causing ShouldDumpBrowserProcessStderr to fail.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
* Suppress AOT/trim analysis errors in demo project
.NET 10 promotes AOT and trim analysis warnings to errors by default
during PublishAot. PuppeteerSharp is not fully AOT/trim-compatible,
so suppress these in the demo project.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>1 parent 08f650d commit 33dd3c8
21 files changed
Lines changed: 42 additions & 41 deletions
File tree
- .github/workflows
- demos/PuppeteerSharpPdfDemo
- lib
- PuppeteerSharp.DevicesFetcher
- PuppeteerSharp.Nunit
- PuppeteerSharp.TestServer
- PuppeteerSharp.Tests.DumpIO
- PuppeteerSharp.Tests.SingleFileDeployment
- PuppeteerSharp.Tests
- FixturesTests
- PuppeteerSharp.Tooling
- PuppeteerSharp
- samples
- complex-js-objects
- get-all-links
- reuse-downloaded-chrome
- searching
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
| 20 | + | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| |||
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
9 | 12 | | |
10 | 13 | | |
11 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
| 5 | + | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | | - | |
| 4 | + | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
0 commit comments