microsoft / playwright-dotnet

.NET version of the Playwright testing and automation library.
https://playwright.dev/dotnet/
MIT License
2.47k stars 235 forks source link

[Bug]: Could not load file or assembly Microsoft.Bcl.AsyncInterface #1747

Closed mrwensveen closed 3 years ago

mrwensveen commented 3 years ago

Playwright version

1.14.1

Operating system

Windows

What browsers are you seeing the problem on?

No response

Other information

This is a duplicate of bug #1531 which was closed by the reporter on the same day it was opened. There was no mention of a resolution and multiple people still encounter this issue including me.

What happened? / Describe the bug

When running the playwright install command, I get an error message complaining about Microsoft.Bcl.AsyncInterfaces not being installed.

Code snippet to reproduce your bug

playwright install

Relevant log output

Unhandled exception. System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Bcl.AsyncInterfaces, Version=5.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified.
File name: 'Microsoft.Bcl.AsyncInterfaces, Version=5.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51'
   at System.Reflection.RuntimeAssembly.GetExportedTypes()
   at Microsoft.Playwright.CLI.Program.Main(String[] args) in /_/src/Playwright.CLI/Program.cs:line 75
avodovnik commented 3 years ago

This sounds like the same issue that was fixed with https://github.com/microsoft/playwright-dotnet/pull/1740. The fix should be available in 1.15.

avodovnik commented 3 years ago

Also, please feel free to look at https://github.com/microsoft/playwright-dotnet/issues/1694 for workaround suggestions.

mrwensveen commented 3 years ago

Thanks @avodovnik, that looks like the same issue.