Install a Nuget package in Visual Studio Code

后端 未结 10 1703
自闭症患者
自闭症患者 2020-12-02 05:16

How can I install a Nuget Package in Visual Studio Code? I know in Visual Studio, we can do this through the Nuget Package Manager console, but how do I do it in VS Code?

10条回答
  •  自闭症患者
    2020-12-02 06:03

    Modify your project.json or *.csproj file. Add a dependency entry with the name of the package and the version desired.

    JSON example:

    {
       "dependencies" : {
    
         "AutoMapper": "5.2.0"
       }
    }
    

提交回复
热议问题