Skip to content

Install Paket as dotnet tool #2101

@nojaf

Description

@nojaf

Since the new alfa of Paket, we can install it as dotnet global tool.

I've made a little sample script where I first install Paket and later use the existing module.

Target.create "InstallPaket" (fun _ ->
    if not (File.exists paketExe) then
        DotNet.exec id "tool" "install --tool-path \".paket\" Paket --version 5.182.0-alpha001 --add-source https://api.nuget.org/v3/index.json"
        |> ignore
    else
        printfn "paket already installed"
)

When running fake.ps1 Build (or fake.sh Build) it adds paket, downloads dependencies and builds the code. This seems like a nice setup for a CI build.

Could we benefit from something similar in the Fake.DotNet.DotNet or Fake.Dotnet.Paket module?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions