If your project begins with the word 'playwright' then playwright.ps1 will not be installed when you ran 'dotnet build'. Don't ask me why... I had the same problem and could see playwright.ps1 was not appearing in the directory after building, so I renamed my project on a hunch and then I could see the playwright.ps1 file being installed after building