From 4a1f945a3b041c653f213077a8f6a67669d90d6b Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Tue, 18 Jan 2022 00:28:53 +0100 Subject: [PATCH] docs(dotnet): fix intro with old PowerShell version (#11434) --- docs/src/intro-csharp.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/src/intro-csharp.md b/docs/src/intro-csharp.md index 25cf363729..4544e248cf 100644 --- a/docs/src/intro-csharp.md +++ b/docs/src/intro-csharp.md @@ -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.