2016-10-05 73 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將無法將其添加到您的項目中。