Skip to content

Instantly share code, notes, and snippets.

@tugberkugurlu
Created August 23, 2017 15:57
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save tugberkugurlu/d54a053f6a6c51a65011157c782b73b3 to your computer and use it in GitHub Desktop.
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
Copy link

agross 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