anchor.diff:              PackageManagerNotFound(implicitIncludeDir, userProfile)
   
           | Some toolPath ->
  -            let loadScript = Path.Combine(workingDir,PM_LOADSCRIPT)
  +            //let loadScript = Path.Combine(workingDir,PM_LOADSCRIPT)
  +            let loadScript = getRelativeLoadScriptLocation workingDir
               if workingDirSpecFile.Exists && 
                  (File.ReadAllLines(workingDirSpecFile.FullName) |> Array.toList) = packageManagerTextLines && 
                  File.Exists loadScript
  
positive.code: // Copyright (c) Microsoft Corporation.  All Rights Reserved.  Licensed under the Apache License, Version 2.0.  See License.txt in the project root for license information.
  
  /// Coordinating compiler operations - configuration, loading initial context, reporting errors etc.
  module internal Microsoft.FSharp.Compiler.ReferenceLoading.PaketHandler
  
  type ReferenceLoadingResult =
  | Solved of loadingScript: string
  | PackageManagerNotFound of implicitIncludeDir: string * userProfile: string
  | PackageResolutionFailed of toolPath: string * workingDir: string * msg : string
  
  module Internals =
      open System
      open System.IO
      let TargetFramework = "net461"
      let PM_EXE = "paket.exe"
      let PM_DIR = ".paket"
      let PM_SPEC_FILE = "paket.dependencies"
      let PM_LOCK_FILE = "paket.lock"
      let getPackageManagerCommand rootDir = "install --generate-load-scripts load-script-type fsx load-script-framework " + TargetFramework + " project-root \""  + Path.GetFullPath rootDir + "\""
      let PM_LOADSCRIPT = Path.Combine(PM_DIR, "load", TargetFramework, "main.group.fsx")
  
      let userProfile = 
          let res = Environment.GetEnvironmentVariable("USERPROFILE")
          if System.String.IsNullOrEmpty res then
              Environment.GetEnvironmentVariable("HOME")
  
negative.code:                     printfn "package resolution completed at %A" System.DateTimeOffset.UtcNow
                      Solved loadScript
  
  let getLoadScript baseDir packageManagerLoadScriptSubDirectory loadScriptName =
    System.IO.Path.Combine(baseDir, packageManagerLoadScriptSubDirectory, loadScriptName)
  
  /// Resolves absolute load script location: something like
  /// baseDir/.paket/load/scriptName
  /// or
  /// baseDir/.paket/load/frameworkDir/scriptName 
  let GetPaketLoadScriptLocation baseDir optionalFrameworkDir scriptName =
    let paketLoadFolder = System.IO.Path.Combine(Internals.PM_DIR,"load")
    getLoadScript
      baseDir
      (match optionalFrameworkDir with | None -> paketLoadFolder | Some frameworkDir -> System.IO.Path.Combine(paketLoadFolder, frameworkDir))
      scriptName
  