How to add a nuget dependency? #236
-
Here's what I tried,
But the added package cannot be referenced from the source. Perhaps I'm missing something? The paket manual states that I should run |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Short Answer:I think the only step you need from your current process is to add it to paket.references as well. So add You can also do Longer AnswerTo add a nuget package via paket, you'll want to use paket add. You can either specify Paket is installed as a dotnet tool so you'll want to prefix any paket command with |
Beta Was this translation helpful? Give feedback.
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 sayingdotnet paket
…