diff --git a/docs/content/dependencies-file.md b/docs/content/dependencies-file.md index bd51fb04cf..a89d553265 100644 --- a/docs/content/dependencies-file.md +++ b/docs/content/dependencies-file.md @@ -293,6 +293,16 @@ group Build nuget FAKE redirects: on ``` +If you want Paket to always create redirects for all packages then you can use the following: + +```paket +redirects: force +source https://nuget.org/api/v2 + +nuget FSharp.Core +nuget Newtonsoft.JSON +``` + ### Resolver strategy for transitive dependencies The `strategy` option tells Paket what resolver strategy it should use for diff --git a/docs/content/nuget-dependencies.md b/docs/content/nuget-dependencies.md index fd53cb0723..c364ccf716 100644 --- a/docs/content/nuget-dependencies.md +++ b/docs/content/nuget-dependencies.md @@ -349,6 +349,14 @@ source https://nuget.org/api/v2 nuget FSharp.Core redirects: off ``` +If you want Paket to always create a redirect then use the following: + +```paket +source https://nuget.org/api/v2 + +nuget FSharp.Core redirects: force +``` + You can also override the redirects settings per project, from its [`paket.references` file](references-files.html#Redirects-settings).