【问题标题】:Unable to locate Dependency selenium-webdriver无法找到依赖 selenium-webdriver
【发布时间】:2016-02-23 18:21:51
【问题描述】:

我在 Visual Studio Code (OS X) 中创建了 ASP .Net 控制台项目。

然后在project.json中添加依赖:

"dependencies": {
    "selenium-webdriver": "2.52.0"
},

运行“dnu restore”并出现错误:

Microsoft .NET 开发实用程序 CoreClr-x64-1.0.0-rc1-16231

CACHE api.nuget.org/v3/index.json 恢复包 /Users/user/Code/ConsoleApplication/project.json

获取 api.nuget.org/v3-flatcontainer/selenium-webdriver/index.json

未找到 api.nuget.org/v3-flatcontainer/selenium-webdriver/index.json 2432毫秒

无法找到依赖 selenium-webdriver >= 2.52.0 写锁文件 /Users/user/Code/ConsoleApplication/project.lock.json 恢复 完成,经过 3027 毫秒

/Users/user/Code/ConsoleApplication/project.json 中的错误 无法找到依赖 selenium-webdriver >= 2.52.0

使用的饲料: https://api.nuget.org/v3-flatcontainer/

【问题讨论】:

    标签: c# selenium nuget visual-studio-code dnu


    【解决方案1】:

    所以,答案很简单——错字。 id 是selenium.webdriver,而不是selenium-webdriver

    【讨论】:

      猜你喜欢
      • 2016-08-13
      • 1970-01-01
      • 2017-05-09
      • 2014-05-29
      • 1970-01-01
      • 2012-08-05
      • 1970-01-01
      • 1970-01-01
      • 2015-05-12
      相关资源
      最近更新 更多