anchor.diff:      Run currentDirectory (DnxHome + "dnu.cmd") "build .\\test\\Scientist.Test\\ --configuration Release" |> ignore
   )
   
  -Target "CreatePackages" (fun _ -> 
  +Target "CreatePackages" (fun _ ->
       let scientistJsonPath = "/src/Scientist/project.json"
  -    
  +
       UpdateProjectJson scientistJsonPath
  -    
  +
       Run currentDirectory (DnxHome + "dnu.cmd") ("pack .\\src\\Scientist\\ --configuration Release --out " + packagingDir) |> ignore
  -    
  +
       RestoreProjectJson scientistJsonPath
   )
   
  
positive.code: 
  "Clean"
      ==> "SetupBuild"
      
  "SetupBuild" 
      ==> "BuildApp"
      
  "SetupBuild"
      ==> "RunTests"
      
  "SetupBuild"
      ==> "CreatePackages"
      
  "RunTests"
      ==> "Default"
  
  
negative.code:     let errors = new List<string>()
      let messages = new List<string>()
      let timout = TimeSpan.MaxValue
  
      let error msg =
          traceError msg
          errors.Add msg
  
      let message msg =
          traceImportant msg
          messages.Add msg
  
      let code = 
          ExecProcessWithLambdas (fun info ->
              info.FileName <- fileName
              info.WorkingDirectory <- workingDirectory
              info.Arguments <- args
          ) timout true error message
  
      ProcessResult.New code messages errors
  
  let GetHomeDirectory =
      let result = Run currentDirectory "cmd" "/c \"echo %USERPROFILE%\""
      result.Messages.[0]
  
  let GetDnvmHome =
      let homeDirectory =
          if buildServer = BuildServer.AppVeyor    
              then "C:\Program Files (x86)\MSBuild\14.0\Bin\\"
              else (GetHomeDirectory + "\\.dnx\\bin\\")
  
      homeDirectory
  
  let GetDnxHome =
      let homeDirectory = GetHomeDirectory
      homeDirectory + "\\.dnx\\runtimes\\dnx-clr-win-x86.1.0.0-rc1-update1\\bin\\"
  
  let UpdateProjectJson projectJson =
      let fullJsonPath = (__SOURCE_DIRECTORY__ + projectJson)
      let backupJsonPath = (fullJsonPath + ".bak")
  
      CopyFile backupJsonPath fullJsonPath
  
      let tempReleaseNotes = "Temporary release notes\\nWith new line"
      RegexReplaceInFileWithEncoding "\"releaseNotes\": \"\"," ("\"releaseNotes\": \"" + tempReleaseNotes +  "\",") Encoding.UTF8 fullJsonPath
  
  let RestoreProjectJson projectJson =
      let fullJsonPath = (__SOURCE_DIRECTORY__ + projectJson)
      let backupJsonPath = (fullJsonPath + ".bak")
  
      DeleteFile fullJsonPath
      CopyFile fullJsonPath backupJsonPath
      DeleteFile backupJsonPath
  