anchor.diff:          | _ -> None
   
     let generateScriptsForRootFolder scriptType =
  -      let scriptGenerator, scriptWriter =
  +      let scriptGenerator, scriptWriter, filterFrameworkLibs =
             match scriptType with
  -          | CSharp -> generateCSharpScript, writeCSharpScript
  -          | FSharp -> generateFSharpScript, writeFSharpScript
  -
  -      generateScriptsForRootFolderGeneric scriptType.Extension scriptGenerator scriptWriter+          | CSharp -> generateCSharpScript, writeCSharpScript, id
  +          | FSharp -> generateFSharpScript, writeFSharpScript, filterFSharpFrameworkReferences
  +
  +      generateScriptsForRootFolderGeneric scriptType.Extension scriptGenerator scriptWriter filterFrameworkLibs
positive.code:               id
              sprintf @"System.Console.WriteLine(""%s""); " (escape text)
      ]
  
      let text =
        pieces
        |> String.concat ("\n")
      
      File.WriteAllText(scriptFile.FullName, text)
  
    let getIncludeScriptRootFolder (includeScriptsRootFolder: DirectoryInfo) (framework: FrameworkIdentifier) = 
  
negative.code: 
    /// Generate a include scripts for all packages defined in paket.dependencies,
    /// if a package is ordered before its dependencies this function will throw.
    let generateScriptsForRootFolderGeneric extension scriptGenerator scriptWriter filterFrameworkLibs (framework: FrameworkIdentifier) (rootFolder: DirectoryInfo) =
        let dependenciesFile, lockFile =
            let deps = Paket.Dependencies.Locate(rootFolder.FullName)
            let lock =
  