anchor.diff:                          )
                           |> Map.ofSeq
   
  -                    let assemblyResolveHandler = ResolveEventHandler(fun _ e ->
  +                    if not <| isNull assemblyResolveHandler then
  +                        System.AppDomain.CurrentDomain.remove_AssemblyResolve(assemblyResolveHandler)
  +
  +                    assemblyResolveHandler <- ResolveEventHandler(fun _ e ->
                               let assemblyName = AssemblyName(e.Name).Name
                               match Map.tryFind assemblyName referencedAsmNames with
                               | None -> null
  
positive.code:                         )
  
                      System.AppDomain.CurrentDomain.add_AssemblyResolve(assemblyResolveHandler)
  
                      let comp = compiler.Compile(refMeta, compilation)
  
  
negative.code:             let watcher = new FileSystemWatcher(Path.GetDirectoryName path, Path.GetFileName path)
              let onChange (_: FileSystemEventArgs) =
                  lock cachedRefMeta <| fun () ->
                      lastRefPaths <- [ "" ]
                      cachedRefMeta.Remove(path) |> ignore
                      watcher.Dispose() 
  
              watcher.Changed |> Event.add onChange
              watcher.Renamed |> Event.add onChange
  