Paket 12.0.1-alpha001

This is a prerelease version of Paket.
dotnet tool install --global Paket --version 12.0.1-alpha001
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local Paket --version 12.0.1-alpha001
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Paket&version=12.0.1-alpha001&prerelease
                    
nuke :add-package Paket --version 12.0.1-alpha001
                    

CI Build status NuGet Status Join the chat at https://gitter.im/fsprojects/Paket Twitter

Paket

A dependency manager for .NET with support for NuGet packages and git repositories.

Why Paket?

NuGet did not separate out the concept of transitive dependencies. If you install a package into your project and that package has further dependencies then all transitive packages are included in the packages.config. There is no way to tell which packages are only transitive dependencies.

Even more importantly: If two packages reference conflicting versions of a package, NuGet will silently take the latest version (read more). You have no control over this process.

Paket on the other hand maintains this information on a consistent and stable basis within the paket.lock file in the solution root. This file, together with the paket.dependencies file enables you to determine exactly what's happening with your dependencies.

Paket also enables you to reference files directly from git repositories or any http-resource.

For more reasons see the FAQ.

Online resources

Troubleshooting and support

Quick contributing guide

  • Fork and clone locally.
  • Build the solution with Visual Studio, build.cmd or build.sh.
  • Create a topic specific branch in git. Add a nice feature in the code. Do not forget to add tests and/or docs.
  • Run build.cmd (build.sh on Linux/macOS) to make sure all tests are still passing.
  • When built, you'll find the binaries in ./bin which you can then test with locally, to ensure the bug or feature has been successfully implemented.
  • Send a Pull Request.

If you want to contribute to the docs then please modify the markdown files in /docs/content and send a pull request. Note, that short description and syntax for each command is generated automatically from the Paket.Commands module.

License

The MIT license

Maintainer(s)

The default maintainer account for projects under "fsprojects" is @fsprojectsgit - F# Community Project Incubation Space (repo management)

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
12.0.1-alpha001 82 11/28/2026
12.0.0 15,738 11/11/2026
12.0.0-alpha006 174 11/8/2026
12.0.0-alpha005 105 11/7/2026
12.0.0-alpha004 149 11/1/2026
12.0.0-alpha003 6,827 10/26/2026
12.0.0-alpha002 838 10/17/2026
12.0.0-alpha001 1,529 10/11/2026
11.0.1 54,826 10/11/2026
11.0.0 3,207 10/5/2026
11.0.0-alpha004 120 10/5/2026
11.0.0-alpha003 155 9/27/2026
10.3.1 709,554 1/20/2026
10.2.1 6,038 1/19/2026
10.2.0 2,546 1/19/2026
10.1.1 2,502 1/19/2026
10.0.1 2,595 1/19/2026
10.0.0-alpha011 88,931 11/11/2025
10.0.0-alpha009 384 11/11/2025
10.0.0-alpha007 395 11/11/2025
Loading failed

* fix: `paket install` and `paket update` add `<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>` to a project only when they write binding redirects to its `app.config` or `web.config`, and only when the project doesn't set the property: an `AutoGenerateBindingRedirects` of `false` stays `false`. They used to set it to `true` in every project with such a file, also when no redirect was written, as with `redirects: off`, and saved those project files (#4158, #4139)
* fix: The bash completion completes `paket` too, not only `paket.exe`: a global tool, a Paket installed with `--tool-path` or the `paket` alias of `dotnet paket`. It falls back to file names, as in `paket pack out<TAB>`. Remove the `complete -F _paket paket` that the README advised for the alias: it replaces the one of the script, without that fallback
* fix(BREAKING): Completing a package, a version or a group in zsh no longer runs files of the repository. The completion runs the `paket.dll` of the local tool restored in `NUGET_PACKAGES` or `~/.nuget/packages`, with `dotnet`, instead of `dotnet paket`, which the `sdk.paths` of the `global.json` of the repository can point at an SDK of the repository. It reads no `NuGet.config`: export `NUGET_PACKAGES` when yours sets `globalPackagesFolder`. It no longer runs `.paket/paket.exe` first, which can be the one of Paket 11 that fails without mono outside Windows, nor any Paket of the current folder unless the `paket-executable` style lists it: for a Paket installed with `--tool-path .paket`, add `zstyle ':completion::complete:paket:*' paket-executable ./.paket/paket`
* fix(BREAKING): The zsh completion completes package IDs and versions from `https://www.nuget.org/api/v2`, or from the sources of the `package-sources` style, instead of the sources of `paket.dependencies`: their credentials can name environment variables, whose values `paket find-packages` sent to those sources when TAB ran it. To query other feeds, add `zstyle ':completion::complete:paket:*' package-sources https://www.nuget.org/api/v2 https://example.com/feed/v2`: Paket doesn't send them the credentials stored with `paket config add-credentials`, and only reads the versions of a v2 feed. It no longer completes the warnings that paket prints, such as `Ignoring error when requesting`, and a quote in the word being completed no longer breaks the command
* fix: The zsh completion runs the local tool of the closest `.config/dotnet-tools.json` or `dotnet-tools.json` from the current folder up that declares paket, without looking above an `isRoot` one, as dotnet does; else, or when that tool isn't restored, a global tool. It used to read only `./.config/dotnet-tools.json`, where any `"paket"` counted
* fix: The zsh completion applies the styles set for one command, such as `zstyle ':completion::complete:paket:add:*' infix-match yes` or `zstyle ':completion::complete:paket:find-packages:' disable-completion yes`, to `paket` and not only to `paket.exe`
* fix: The zsh completion completes the installed packages for `paket why` and `paket find-refs`, and after `--group`: it passed the group to `paket show-installed-packages`, which takes none
* fix: `#r "paket:"` in F# scripts runs the local tool, and the Paket .NET tool restored in the NuGet packages folder, with the first dotnet that has a .NET runtime that the tool runs on, looking at the one that runs the script, then in `DOTNET_ROOT`, the `PATH` and the default install folders. It used to run `dotnet` from the `PATH` unless `DOTNET_HOST_PATH` was set, which failed in an IDE or an app that hosts F# Interactive without dotnet on its `PATH`. When it finds no dotnet, it asks to set `DOTNET_ROOT` or to add dotnet to the `PATH`, instead of failing to start `dotnet`, and when Paket fails, the error shows the whole command it ran
* fix: `#r "paket:"` in F# scripts runs the `paket.dll` of the local tool that `dotnet tool restore` recorded, as `dotnet tool run` does. When there is none, it looks for the local tool in the NuGet packages folder, and then in `~/.nuget/packages`, as for the most recent Paket .NET tool restored. The NuGet packages folder is `NUGET_PACKAGES`, or else the one that `dotnet nuget locals global-packages --list` gives when run in the folder that has the tool manifest, or in the folder of the script: the `globalPackagesFolder` of the `nuget.config` files, or `~/.nuget/packages`. It looked in `NUGET_PACKAGES` or `~/.nuget/packages` only, and asked to run `dotnet tool restore` for a local tool restored elsewhere. When the local tool isn't restored, the warning or the error that says so gives the folders it looked in and the folder to run `dotnet tool restore` in
* fix: When neither `HOME` nor `USERPROFILE` is set, `#r "paket:"` in F# scripts no longer fails with an `ArgumentNullException` while looking for a global tool, and with an empty `HOME` it no longer looks for one in the current folder
* fix: When the tool manifest declares paket but its local tool isn't restored, `#r "paket:"` in F# scripts warns and runs a global tool, or else the most recent Paket .NET tool restored in the NuGet packages folder, instead of failing, and when it finds neither, it fails asking to run `dotnet tool restore`; it still skips a Paket installed with `--tool-path`. The Paket that runs instead may be another version: when it fails, the error ends by repeating that the local tool isn't restored, and when it succeeds, the next run runs Paket again, with the local tool once it is restored, which installs the versions written in `paket.lock` by the Paket that ran instead, as `paket install` does
* fix: When the tool manifest says `"rollForward": true` for paket, as `dotnet tool install --allow-roll-forward` writes it, `#r "paket:"` in F# scripts runs the local tool with `dotnet --roll-forward Major`, as `dotnet tool run` does: whatever `DOTNET_ROLL_FORWARD` says, it takes the first `dotnet` that has the .NET version of the tool or a later one, and runs on a later major version when that `dotnet` lacks the one of the tool. It ran the tool as its `runtimeconfig.json` and `DOTNET_ROLL_FORWARD` said: with `DOTNET_ROLL_FORWARD` set to `Minor`, `LatestMinor` or `LatestPatch`, it failed where `dotnet paket` worked when no `dotnet` had the .NET version of the tool, such as .NET 10 for Paket 12, with `Disable` when none had the exact version it asks for, such as .NET 10.0.0, and with `LatestMajor` it ran on the latest major version of the `dotnet`
* fix: `#r "paket:"` in F# scripts finds the local tool when the tool manifest gives its version in a form that NuGet normalizes, such as `12.0-alpha003` or `12.0.0+sha`: it looked for the tool under that form, while `dotnet tool restore` records and restores it under the normalized version, `12.0.0-alpha003` or `12.0.0`, so it took the local tool as not restored. As dotnet, it takes a manifest that gives paket a version that NuGet refuses as invalid, where it looked for the tool under that version, or ignored the paket tool when the version was empty
* fix: `#r "paket:"` in F# scripts reads the tool manifest as JSON, as dotnet does: only the tools of `"tools"` count, the property names other than the IDs of the tools are case-sensitive, and the last `"isRoot"`, `"version"` or `"rollForward"` counts when one is written twice. As dotnet, it doesn't look for the local tool in or above a manifest that isn't JSON, which allows no comment or trailing comma, that isn't a JSON object, that has no `"isRoot"` set to `true` or `false`, whose `"tools"` isn't an object, or whose paket tool has no `"version"`: it warns and runs the Paket that runs without a manifest that declares paket, which may be another version, and fails with the reason only when it finds none; as when the local tool isn't restored, the error of that Paket repeats the reason, and its result isn't kept. It doesn't check the rest: it still reads a manifest that dotnet refuses for the `"version"` of the manifest, for another tool, or for the `"commands"` of the paket tool or a `"rollForward"` that isn't `true` or `false`, which it takes as `false`. It looked for a `"paket"` object and for `"isRoot"` anywhere in the manifest, and for the `"version"` of paket before the first `}`, without case, so that a property in a comment or the `"paket"` object of another tool when it had a `"version"` counted, an object in the paket tool hid the properties after it, and a manifest that dotnet refuses could still give the version of paket or tell whether to look above it
* fix: `#r "paket:"` in F# scripts reads a tool manifest at the root of a drive only where dotnet does: on Windows, where any user can create a folder there, only when `DOTNET_TOOLS_ALLOW_MANIFEST_IN_ROOT` is `true` or `1`, and elsewhere unless it is set to another value. It looks for a Paket installed with `--tool-path` there, directly or in a `.paket` folder, only on the same terms. It read them everywhere, so that a manifest that another user created could choose the Paket that runs, and a `paket.exe` that another user created ran
* fix: `paket pack` finds the output folder of an SDK project for the frameworks that the project writes otherwise than Paket names them, such as `net8.0-windows` (`net8.0-windows7.0`), `net8.0-windows10.0.19041` or `NET472`. It failed with "Unable to find Debug output path node" when the project sets no `OutputPath`, and took the `OutputPath` without the framework folder otherwise. It also read the assembly of a project that writes `NET472` in `bin/Debug/NET472`, while the SDK names the folder in lowercase, which failed on a case-sensitive file system - https://github.com/fsprojects/Paket/issues/4504
* fix: `paket pack` skips the entries of `TargetFrameworks` that expand to blank, as a property defined outside of the project file in `$(ExtraTargetFramework) ;net8.0`, when it reads the assembly of a project: it took the first one, and failed with "Unable to find Debug output path node" or took the `OutputPath` without the framework folder
* fix: `paket pack` finds the output folders of a project that empties `TargetFramework` next to `TargetFrameworks`, as to clear the one of Directory.Build.props: it only looked for them in the empty `TargetFramework`, and failed with "Unable to find Debug output path node" or took the `OutputPath` without the framework folder