简体   繁体   中英

I am getting an error while installing nuget package with dotnet ,could not find any project in c:\

I am trying to download packages using dotnet CLI but I am getting an error : Couldn't find any project in c:...etc图片

I think that you are in your solution folder and there is no .csproj files inside that folder - you need to cd in one more folder which contains desired .csproj file for which you want to install nugget package. Not sure that with dotnet CLI you can install package for entire solution.

I found the solution I had to access :

add webApplication4 add package Newtonsoft.Json

add nameOfTheProject add package nameOfthePackage.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM