Fixed the Windows.Forms designer not reloading when a referenced assembly has been changed.
TypeResolutionService now additionally keeps track of loaded assemblies on a per-instance basis to support this.
Use Assembly.CodeBase instead of Location for determining the assembly path when possible because Location may refer to a shadow copy.
git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/branches/3.0@3595 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
LoggingService.Info("Forms designer reloading due to change in referenced assembly");
if(!loaderService.Reload()){
MessageService.ShowMessage("The designer has detected that a referenced assembly has been changed, but the designer loader did not accept the reload command. Please reload the designer manually by closing and reopening this file.");
}
}else{
LoggingService.Debug("Forms designer detected change in referenced assembly, but is in load operation");
}
}else{
MessageService.ShowMessage("The designer has detected that a referenced assembly has been changed, but it cannot reload itself because IDesignerLoaderService is unavailable. Please reload the designer manually by closing and reopening this file.");
}
}
}
}else{
LoggingService.Debug("FormsDesigner view content deactivated, setting ActiveDesignSurface to null");
thrownewInvalidOperationException("Cannot initialize CustomComponentToolBoxItem because the designer host does not provide a SharpDevelop TypeResolutionService.");