Skip to content

Commit

Permalink
Generate the referencing scripts (#121)
Browse files Browse the repository at this point in the history
* Generate the referencing scripts

* Factor out common generateScriptsForRootFolder
  • Loading branch information
cgravill authored and sylvanc committed Jan 9, 2017
1 parent 31d65ac commit dc19cd7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/IfSharp.Kernel/helpers/Paket.Generated.Refs.fsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#load "paket-files/include-scripts/net451/include.main.group.fsx"
9 changes: 9 additions & 0 deletions src/IfSharp.Kernel/helpers/Paket.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

open System
open Paket
open Paket.LoadingScripts.ScriptGeneration

let deps =
let dir =
Expand All @@ -27,14 +28,22 @@ let private add package version =
installAfter = false, semVerUpdateMode = SemVerUpdateMode.NoRestriction,
touchAffectedRefs = false)

let private generateScripts() =
//The framework version needs to be kept in sync with the kernel
generateScriptsForRootFolder FSharp (Paket.FrameworkIdentifier.DotNetFramework Paket.FrameworkVersion.V4_5_1) (System.IO.DirectoryInfo __SOURCE_DIRECTORY__)

let Package list =
for package in list do
add package ""

generateScripts()

deps.Install(false)

let Version list =
for package, version in list do
add package version

generateScripts()

deps.Install(false)

0 comments on commit dc19cd7

Please sign in to comment.