The below error is thrown when a Visual Studio Web and Load Testing Performance Project references assemblies with dependencies. The error is thrown when attempting to convert the webtest to code, when attempting to insert a plugin, or when attempting to insert a request plugin.
Could not load file or assembly 'WebDriver, Version=2.53.1.0, Culture=neutral, PublicKeyToken=null' or one of it's dependencies. The system cannot find the file specified.
In this example, I have added only two dependencies. Selenium.WebDriver v2.53.1.0 and Selenium.WebDriver.Support v2.53.1.0. Support is dependent on WebDriver. Both were added as references (via Selenium's nuget packages) and included in the solution. Both get copied to output directory. Both have been verified to not be blocked (ran Unblock-File -Path $pathToReference
to be sure). Modified DevEnv.exe.config to add <LoadFromRemoteSources enabled="true"/>
to the runtime section.
I can reproduce this in a bare bones solution, which can be found on github.
Has anyone encountered this and found a way to work around it? It's very inconvenient to have to remove the references in order to use the plugin and convert to code features, then add them back.