Visual studio 2012 在Windows 8上使用WatiN 2.1启动IE10时出现文件未找到错误
在VisualStudio2012中,我创建了一个Microsoft单元测试项目,并通过Nuget添加了WatiN 2.1。 当尝试在Windows 8上启动IE10时,出现“找不到文件”错误Visual studio 2012 在Windows 8上使用WatiN 2.1启动IE10时出现文件未找到错误,visual-studio-2012,watin,Visual Studio 2012,Watin,在VisualStudio2012中,我创建了一个Microsoft单元测试项目,并通过Nuget添加了WatiN 2.1。 当尝试在Windows 8上启动IE10时,出现“找不到文件”错误 Could not load file or assembly 'Interop.SHDocVw, Version=1.1.0.0, Culture=neutral, PublicKeyToken=db7cfd3acb5ad44e' or one of its dependencies. The sys
Could not load file or assembly 'Interop.SHDocVw, Version=1.1.0.0, Culture=neutral,
PublicKeyToken=db7cfd3acb5ad44e' or one of its dependencies. The system cannot find the
file specified.
[TestClass]
public class UnitTest1
{
[TestMethod]
public void TestMethod1()
{
var driver = new IE("http://google.com");
driver.Close();
}
}
然后,我意识到下面两个dll的复制本地将变灰并设置为false,因此如果更新,我无法将其设置为复制
我可以手动将它们复制到bin文件夹,但Nuget软件包或我的Visual Studio是否有问题?我发现,如果我将嵌入互操作类型更改为False,则“复制本地”将启用
Interop.SHDocVw.dll
Microsoft.mshtml.dll