# Does \`paket\` update the project file (\`.fsproj\`) once a package has been installed?

**URL:** <https://forums.fsharp.org/t/does-paket-update-the-project-file-fsproj-once-a-package-has-been-installed/3406>\
**Category:** Uncategorized\
**Tags:** beginners\
**Created:** [November 12, 2023, 3:39am UTC](https://forums.fsharp.org/t/does-paket-update-the-project-file-fsproj-once-a-package-has-been-installed/3406 "2023-11-12T03:39:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![toraritte](https://yyz2.discourse-cdn.com/flex030/user_avatar/forums.fsharp.org/toraritte/32/1263_2.png) [@toraritte](https://forums.fsharp.org/u/toraritte)\
**Post date:** [November 12, 2023, 3:39am UTC](https://forums.fsharp.org/t/does-paket-update-the-project-file-fsproj-once-a-package-has-been-installed/3406/1 "2023-11-12T03:39:59Z")

</div>

Just getting into F#, finally figured out how to add .NET packages to projects, but the way I managed to get it to work doesn’t make sense. Once the package is installed (either with `nuget` or `paket`), I have to manually add a reference to the project file (either by editing it directly or with `dotnet add package` (`https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-add-package`). This extra step is usually automated with other languages, so I presume that I’m doing something wrong.

These are the steps I did on a Mac M1:

1. “Install” F#

2. Follow all the steps in [Get started with F# with command-line tools - .NET | Microsoft Learn](https://learn.microsoft.com/en-us/dotnet/fsharp/get-started/get-started-command-line). (No errors.)

3. Install `paket` following the install guide (`https://fsprojects.github.io/Paket/get-started.html#NET-Core-preferred`).

4. Follow the walkthrough (`https://fsprojects.github.io/Paket/learn-how-to-use-paket.html#Walkthrough`) on adding dependencies.

The fix was simple enough,

```auto
dotnet add src/App/App.fsproj package "FSharpPlus" --version "1.5.0"

```

but it’s hard for me to believe that one has to add these references manually for each package.

* * *

After all this, just out of curiosity, I added `open Giraffe.Htmx` to `src/App/Program.fs`, then ran

```auto
dotnet add src/App/App.fsproj package "Giraffe.Htmx" --version "1.9.6"
dotnet build

```

and everything worked… So what is the point of using `paket` or `nuget` then?

(The thread [What benefits do FAKE and PAKET provide over traditional ways?](https://forums.fsharp.org/t/what-benefits-do-fake-and-paket-provide-over-traditional-ways/292) explains the benefits quite well, and I guess that my woes are stemming from doing this on a Mac and/or using Nix.)
