Skip to content

How to add a nuget dependency? #236

Answered by TheAngryByrd
srid asked this question in Q&A
Discussion options

You must be logged in to vote

Short Answer:

I think the only step you need from your current process is to add it to paket.references as well. So add Memstate.All all paket.references files in your projs that require it.

You can also do dotnet paket add Memstate.All -i, this will add this package and allow you to choose which projects should this dependency be added to.

Longer Answer

To add a nuget package via paket, you'll want to use paket add. You can either specify -i flag to interactively choose with projects to add this to or --project <path-to-project> to choose a specific project.

Paket is installed as a dotnet tool so you'll want to prefix any paket command with dotnet. If you get an error saying dotnet paket

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by TheAngryByrd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants