docs(dotnet): bundle driver for different platforms (#11643)

This commit is contained in:
Max Schmitt 2022-01-26 21:26:51 +01:00 committed by GitHub
parent 97b975b5ec
commit 0e7e63f09f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -134,6 +134,24 @@ if (exitCode != 0)
}
```
## Bundle drivers for different platforms
Playwright by default does bundle only the driver for the .NET publish target runtime. If you want to bundle for additional platforms, you can
override this behavior by using either `all`, `none` or `linux`, `win`, `osx` in your project file.
```xml
<PropertyGroup>
<PlaywrightPlatform>all</PlaywrightPlatform>
</PropertyGroup>
```
or:
```xml
<PropertyGroup>
<PlaywrightPlatform>osx;linux</PlaywrightPlatform>
</PropertyGroup>
## System requirements
The browser binaries for Chromium, Firefox and WebKit work across the 3 platforms (Windows, macOS, Linux):