anchor.diff:              allSources <- filename :: allSources
       
       let AppendClosureInformation filename =
  -        if isScriptCompilation && IsScript filename then 
  -
  -            // Pre-infer the target framework from the script
  -            let sourceText = File.ReadAllText filename
  -            let source = SourceText.ofString sourceText
  +        if IsScript filename then 
  +
  +            // Get the source to infer the target framework from any #targetfx declarations in the script
  +            let source = SourceText.ofString (File.ReadAllText filename)
   
               // Do we assume .NET Framework references for scripts? In the absence of either explicit argument
               // or an explicit #targetfx declaration, then for compilation and analysis the default
  
positive.code:         exiter.Exit 1
  
  /// Check for .fsx and, if present, compute the load closure for of #loaded files.
  let AdjustForScriptCompile(ctok, tcConfigB: TcConfigBuilder, defaultToDotNetFramework, commandLineSourceFiles, dependencyProvider) =
  
      let combineFilePath file =
  
negative.code:         |> List.map combineFilePath
          
      // Script compilation is active if the last item being compiled is a script and --noframework has not been specified
      let mutable allSources = []       
      
      let AddIfNotPresent(filename: string) =
  