docs(dotnet): fix intro with old PowerShell version (#11434)

This commit is contained in:
Max Schmitt 2022-01-18 00:28:53 +01:00 committed by GitHub
parent 60e7caf91c
commit 4a1f945a3b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,6 +21,9 @@ dotnet add package Microsoft.Playwright
dotnet build
# Install required browsers
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.
dotnet tool update --global PowerShell
```
Create a `Program.cs` that will navigate to `https://playwright.dev/dotnet` and take a screenshot in Chromium.