[英]Unable to locate Dependency selenium-webdriver
我已經在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的程序包
GET api.nuget.org/v3-flatcontainer/selenium-webdriver/index.json
NotFound api.nuget.org/v3-flatcontainer/selenium-webdriver/index.json 2432ms
無法找到依賴項selenium-webdriver> = 2.52.0寫入鎖定文件/Users/user/Code/ConsoleApplication/project.lock.json恢復完成,已花費3027ms
/Users/user/Code/ConsoleApplication/project.json中的錯誤無法找到依賴項selenium-webdriver> = 2.52.0
使用的供稿: https : //api.nuget.org/v3-flatcontainer/
因此,答案很簡單-錯字。 id是selenium.webdriver
,而不是selenium-webdriver
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.