anchor.diff:      static let wsError = 
           new DiagnosticDescriptor ("WebSharperError", "WebSharper errors", "{0}", "WebSharper", DiagnosticSeverity.Error, true, null, null)
   
  +    let mutable assemblyResolveHandler = null
  +    let mutable lastRefPaths = [ "" ]
  +    let mutable cachedRefErrorsAndMeta = None
  +
       let cachedRefMeta = Dictionary() 
   
       member this.GetRefMeta(path) =
  
positive.code:                         )
                          |> Map.ofSeq
  
                      let assemblyResolveHandler = ResolveEventHandler(fun _ e ->
                              let assemblyName = AssemblyName(e.Name).Name
                              match Map.tryFind assemblyName referencedAsmNames with
                              | None -> null
  
negative.code:                         )
  
                      System.AppDomain.CurrentDomain.add_AssemblyResolve(assemblyResolveHandler)
  
                      let metas = refPaths |> List.map this.GetRefMeta
                      let refErrors = metas |> List.choose snd
  
                      let refMeta =
                          if List.isEmpty metas || not (List.isEmpty refErrors) then None 
                          else Some (WebSharper.Core.Metadata.Info.UnionWithoutDependencies (metas |> List.choose fst))
  
                      cachedRefErrorsAndMeta <- Some (refErrors, refMeta)
                      cachedRefErrorsAndMeta.Value
  
              startCtx.RegisterCompilationEndAction(fun endCtx ->
                  if not (List.isEmpty refErrors) then
                      for err in refErrors do    
                          endCtx.ReportDiagnostic(Diagnostic.Create(wsError, Location.None, err))
                  else
                  try
                      let compilation = endCtx.Compilation :?> CSharpCompilation
  
                      if compilation.GetDiagnostics() |> Seq.exists (fun d -> d.Severity = DiagnosticSeverity.Error) then () else
  
                      let compiler = WebSharper.Compiler.CSharp.WebSharperCSharpCompiler(ignore, UseGraphs = false)
  
                      let comp = compiler.Compile(refMeta, compilation)
  
  