Get started
This guide shows how to get started with Paket in various ways, depending on your scenario:
Get started with the .NET tool
Paket is a .NET tool, and it's simple to get started.
-
Install the .NET SDK
If you don't have it already, you'll need to download and install the latest .NET SDK.
-
Install and restore Paket as a local tool in the root of your codebase:
dotnet new tool-manifest dotnet tool install paket dotnet tool restoreThis will create a
.config/dotnet-tools.jsonfile in the root of your codebase. It must be checked into source control. -
Initialize Paket by creating a dependencies file.
dotnet paket init
If you have a build.sh/build.cmd build script, also make sure you add the last two commands before you execute your build:
|
This will ensure Paket works in any .NET build environment. For a solution with projects that
don't use the .NET SDK, such as .NET Framework projects built by Visual Studio, also run
dotnet paket auto-restore on, see installation.
Make sure to add the following entry to your .gitignore:
|
Next, learn how to use Paket
Convert from NuGet
If you are using legacy NuGet (packages.config-style), then check out the tutorial on how to automatically convert from legacy nuget.
Paket