2016-10-05 128 views
0

我在使用硒在C#中做一个UIAutomation项目。自动化将在Internet Explorer中完成。所以,我想从NuGet包管理器下载IEDriver.exe但面对以下错误:无法安装包'IEDriver 2.0.0'

Severity Code Description Project File Line Suppression State Error
Could not install package 'IEDriver 2.0.0'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.6.1', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author. 0

我有一些困惑过这样的警告。

  • 包不包含任何程序集引用或与该框架兼容的内容文件

什么是那些集引用的,哪些是我的targer gramework版本v4.6.1兼容的内容文件?

回答

0

如果你看看IEDriver 2.0 NuGet包里面,它只包含一个文件:IEDriverServer.exe。

您无法将此NuGet包安装到项目中。它没有任何lib目录,因此NuGet将无法将其添加到您的项目中。