DamianH.Playwright.InstallTool
0.2.0
dotnet tool install --global DamianH.Playwright.InstallTool --version 0.2.0
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
dotnet tool install --local DamianH.Playwright.InstallTool --version 0.2.0
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=DamianH.Playwright.InstallTool&version=0.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package DamianH.Playwright.InstallTool --version 0.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Playwright Install Tool
A .NET tool to install Playwright browser dependencies for a project — without needing to find and run playwright.ps1 from your build output.
Installation
dotnet tool install DamianH.Playwright.InstallTool
Usage
Navigate to a directory containing a project that references Microsoft.Playwright and run:
playwright install
To uninstall browsers:
playwright uninstall
Options
| Option | Description |
|---|---|
--project <path> |
Path to a specific .csproj file. Defaults to scanning the current directory. |
Any additional arguments are passed through to Playwright's CLI.
How it works
- Finds the
.csprojin the current directory (or the one specified via--project) - Reads
obj/project.assets.jsonto determine the resolvedMicrosoft.Playwrightversion (runsdotnet restoreif needed) - Loads
Microsoft.Playwright.dllfrom the NuGet package cache - Invokes Playwright's install/uninstall command
License
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.