Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

docs(csharp): refer to net8.0 (new LTS) (#28664)

Max Schmittdfd8f25e6c5d
diff --git a/docs/src/ci-intro.md b/docs/src/ci-intro.md
index 85741e24ef..98c8f6e825 100644
--- a/docs/src/ci-intro.md
+++ b/docs/src/ci-intro.md
@@ -150,10 +150,10 @@ jobs:
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
- dotnet-version: 6.0.x
+ dotnet-version: 8.0.x
- run: dotnet build
- name: Ensure browsers are installed
- run: pwsh bin/Debug/net6.0/playwright.ps1 install --with-deps
+ run: pwsh bin/Debug/net8.0/playwright.ps1 install --with-deps
- name: Run your tests
run: dotnet test
```
@@ -268,7 +268,7 @@ jobs:
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
- dotnet-version: 6.0.x
+ dotnet-version: 8.0.x
- run: dotnet build
- name: Run your tests
run: dotnet test
@@ -372,10 +372,10 @@ jobs:
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
- dotnet-version: 6.0.x
+ dotnet-version: 8.0.x
- run: dotnet build
- name: Ensure browsers are installed
- run: pwsh bin/Debug/net6.0/playwright.ps1 install --with-deps
+ run: pwsh bin/Debug/net8.0/playwright.ps1 install --with-deps
- name: Run tests
run: dotnet test
env:
diff --git a/docs/src/ci.md b/docs/src/ci.md
index 280602cbe1..38152d8332 100644
--- a/docs/src/ci.md
+++ b/docs/src/ci.md
@@ -167,11 +167,11 @@ steps:
- task: UseDotNet@2
inputs:
packageType: sdk
- version: '6.0.x'
+ version: '8.0.x'
displayName: 'Use .NET SDK'
- script: dotnet build --configuration Release
displayName: 'Build'
-- script: pwsh bin/Release/net6.0/playwright.ps1 install --with-deps
+- script: pwsh bin/Release/net8.0/playwright.ps1 install --with-deps
displayName: 'Install Playwright browsers'
- script: dotnet test --configuration Release
displayName: 'Run tests'
@@ -367,7 +367,7 @@ steps:
- task: UseDotNet@2
inputs:
packageType: sdk
- version: '6.0.x'
+ version: '8.0.x'
displayName: 'Use .NET SDK'
- script: dotnet build --configuration Release
diff --git a/docs/src/intro-csharp.md b/docs/src/intro-csharp.md
index a76fc3b78d..16952c569b 100644
--- a/docs/src/intro-csharp.md
+++ b/docs/src/intro-csharp.md
@@ -69,7 +69,7 @@ dotnet add package Microsoft.Playwright.MSTest
dotnet build
```
-4. Install required browsers by replacing `netX` with the actual output folder name, e.g. `net6.0`:
+4. Install required browsers by replacing `netX` with the actual output folder name, e.g. `net8.0`:
```bash
pwsh bin/Debug/netX/playwright.ps1 install
diff --git a/docs/src/library-csharp.md b/docs/src/library-csharp.md
index 1abda291ff..ff68f86fd9 100644
--- a/docs/src/library-csharp.md
+++ b/docs/src/library-csharp.md
@@ -20,7 +20,7 @@ cd PlaywrightDemo
dotnet add package Microsoft.Playwright
# Build the project
dotnet build
-# Install required browsers - replace netX with actual output folder name, e.g. net6.0.
+# Install required browsers - replace netX with actual output folder name, e.g. net8.0.
pwsh bin/Debug/netX/playwright.ps1 install
# If the pwsh command does not work (throws TypeNotFound), make sure to use an up-to-date version of PowerShell.
diff --git a/docs/src/webview2.md b/docs/src/webview2.md
index b5db56ac36..573f8369f4 100644
--- a/docs/src/webview2.md
+++ b/docs/src/webview2.md
@@ -79,7 +79,7 @@ import childProcess from 'child_process';
const EXECUTABLE_PATH = path.join(
__dirname,
- '../../webview2-app/bin/Debug/net6.0-windows/webview2.exe',
+ '../../webview2-app/bin/Debug/net8.0-windows/webview2.exe',
);
export const test = base.extend({
@@ -148,7 +148,7 @@ public class WebView2Process {
public int cdpPort;
private Path _dataDir;
private Process _process;
- private Path _executablePath = Path.of("../webview2-app/bin/Debug/net6.0-windows/webview2.exe");
+ private Path _executablePath = Path.of("../webview2-app/bin/Debug/net8.0-windows/webview2.exe");
public WebView2Process() throws IOException {
cdpPort = nextFreePort();
@@ -268,7 +268,7 @@ EXECUTABLE_PATH = (
/ "webview2-app"
/ "bin"
/ "Debug"
- / "net6.0-windows"
+ / "net8.0-windows"
/ "webview2.exe"
)
@@ -361,7 +361,7 @@ public class WebView2Test : PlaywrightTest
public IPage Page { get; internal set; } = null!;
private Process? _webView2Process = null;
private string _userDataDir = null!;
- private string _executablePath = Path.Join(Directory.GetCurrentDirectory(), @"..\..\..\..\webview2-app\bin\Debug\net6.0-windows\webview2.exe");
+ private string _executablePath = Path.Join(Directory.GetCurrentDirectory(), @"..\..\..\..\webview2-app\bin\Debug\net8.0-windows\webview2.exe");
[SetUp]
public async Task BrowserSetUp()