Add Nuget reference to VS project package from command line

前端 未结 2 1834
悲哀的现实
悲哀的现实 2021-01-25 01:50

Is it possible to add a NuGet reference to an existing VS project (csproj or jsprox) using some command line tool?

I would need a functionality like package manager cons

2条回答
  •  后悔当初
    2021-01-25 02:24

    If you are using .NET Core there is now a way to achieve this using the dotnet CLI.

    dotnet add package EntityFramework
    

    See Steve Smith's blog post for more information.

提交回复
热议问题