docs(csharp): refer to net8.0 (new LTS) (#28664)
This commit is contained in:
parent
44c3ad5ceb
commit
dfd8f25e6c
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue