Install a Nuget package in Visual Studio Code

后端 未结 10 1704
自闭症患者
自闭症患者 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:02

    You can use the NuGet Package Manager extension.

    After you've installed it, to add a package, press Ctrl+Shift+P, and type >nuget and press Enter:

    Type a part of your package's name as search string:

    Choose the package:

    And finally the package version (you probably want the newest one):

提交回复
热议问题