anchor.diff:              let resolvedAsFile = 
                   groupedReferences 
                   |>Array.map(fun (_filename,maxIndexOfReference,references)->
  -                                let assemblyResolution = references 
  -                                                         |> List.map tcConfig.TryResolveLibWithDirectories
  -                                                         |> List.filter Option.isSome
  -                                                         |> List.map Option.get
  +                                let assemblyResolution = references |> List.choose tcConfig.TryResolveLibWithDirectories
                                   (maxIndexOfReference, assemblyResolution))  
                   |> Array.filter(fun (_,refs)->refs|>List.isEmpty|>not)
                   
  
positive.code:                 | None -> new  StreamReader(stream,true)
                  | Some n -> new  StreamReader(stream,Encoding.GetEncodingShim(n)) 
              let source = reader.ReadToEnd()
              [SourceFile(filename,m,source)]
          with e -> 
              errorRecovery e m 
              []
  
negative.code: 
          let tcConfig = CreateScriptSourceTcConfig(filename,codeContext,useSimpleResolution,useFsiAuxLib,Some references0,applyCommmandLineArgs)
  
          let closureSources = [ClosureSource(filename,range0,source,true)]
          let closureFiles,tcConfig = FindClosureFiles(closureSources,tcConfig,codeContext,lexResourceManager)
          GetLoadClosure(filename,closureFiles,tcConfig,codeContext)
          
      /// Given source filename, find the full load closure
      /// Used from fsi.fs and fsc.fs, for #load and command line
      let GetFullClosureOfScriptFiles(tcConfig:TcConfig,files:(string*range) list,codeContext,_useDefaultScriptingReferences:bool,lexResourceManager:Lexhelp.LexResourceManager) = 
          let mainFile = fst (List.last files)
          let closureSources = files |> List.map (fun (filename,m) -> ClosureSourceOfFilename(filename,m,tcConfig.inputCodePage,true)) |> List.concat 
          let closureFiles,tcConfig = FindClosureFiles(closureSources,tcConfig,codeContext,lexResourceManager)
          GetLoadClosure(mainFile,closureFiles,tcConfig,codeContext)        
  
  type LoadClosure with
      // Used from service.fs, when editing a script file
  