I’m running into an issue where calling CsSolution.RegisterAssembly is not reflecting in the editor. My editor is now showing any class library or base library information after running this code. I have verified that the files exist on disk and that the true is returned from the RegisterAssembly call.
public void AddLibraryReference(LibraryReference lib)
{
var dllPath = lib.Name;
var project = _workspaceInternal.CurrentSolution.GetProject(GetScriptProjectId(lib.Tier.ToString()));
Debug.Assert(project != null);
var result = RoslynSolution.RegisterAssembly(dllPath, project.Id);
}