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
                    
if you are setting up this repo
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
                    
nuke :add-package DamianH.Playwright.InstallTool --version 0.2.0
                    

Playwright Install Tool

CI NuGet NuGet Downloads License

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

  1. Finds the .csproj in the current directory (or the one specified via --project)
  2. Reads obj/project.assets.json to determine the resolved Microsoft.Playwright version (runs dotnet restore if needed)
  3. Loads Microsoft.Playwright.dll from the NuGet package cache
  4. Invokes Playwright's install/uninstall command

License

MIT

Product 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.

Version Downloads Last Updated
0.2.0 2,570 4/21/2026
0.1.0 106 4/21/2026