我在(OS )中创建了ASP .Net控制台项目。
然后在project.json中添加了依赖项:
"dependencies": {
"selenium-webdriver": "2.52.0"
},运行"dnu还原“并获得一个错误:
微软.NET开发工具CoreClr-x64-1.0.0-rc1-16231 缓存api.nuget.org/v3/index.json为/Users/user/Code/ConsoleApplication/project.json GET api.nuget.org/v3-flatcontainer/selenium-webdriver/index.json NotFound api.nuget.org/v3-flatcontainer/selenium-webdriver/index.json 2432 v3恢复包 无法找到依赖项selenium-Webdriver2.52.0写入锁文件/Users/user/Code/ConsoleApplication/project.lock.json恢复完成,需要3027 to /Users/user/Code/ConsoleApplication/project.json中无法定位依赖项selenium的错误-webdriver >= 2.52.0 使用的提要:https://api.nuget.org/v3-flatcontainer/
发布于 2016-03-03 11:33:54
所以,答案是简单的错误。id是selenium.webdriver,而不是selenium-webdriver
https://stackoverflow.com/questions/35585235
复制相似问题