Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
source https://nuget.org/api/v2
// NuGet packages from https://nuget.org/api/v2 source
nuget NUnit ~> 2.6.3
source https://my-nuget-server.example.com/api/v2
// NuGet packages from https://my-nuget-server.example.com/api/v2 source
nuget FAKE ~> 3.4
nuget DotNetZip >= 1.9
// Files from GitHub repositories.
github forki/FsUnit FsUnit.fs
// Gist files.
gist Thorium/1972349 timestamp.fs
// HTTP resources.
http http://www.fssnip.net/1n decrypt.fs
@agross

This comment has been minimized.

Copy link

commented Aug 23, 2017

To use a different source for FAKE and DotNetZip you will need to define another group (with Main being the implied default group). I you don't Paket will use the latest versions according to your version constraints across all sources of a group. So as you typed it, nuget.org and my-nuget-server.example.com would be be combined as one "virtual" source.

Apart from that, https://gist.github.com/Thorium/1972349 doesn't contain a timestamp.fs, but rather gistfile1.fs.

Does this work?

// Main group:
source https://nuget.org/api/v2

// NuGet packages from https://nuget.org/api/v2 source
nuget NUnit ~> 2.6.3

// Files from GitHub repositories.
github forki/FsUnit FsUnit.fs

// Gist files.
gist Thorium/1972349 gistfile1.fs

// HTTP resources.
http http://www.fssnip.net/1n decrypt.fs

group myget
  source https://my-nuget-server.example.com/api/v2

  // NuGet packages from https://my-nuget-server.example.com/api/v2 source
  nuget FAKE ~> 3.4
  nuget DotNetZip >= 1.9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.