CsSolution.RegisterAssembly is not working

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);
    }

Nevermind. It was an issue with the calling code.

Hi Gregory,

Thank you for confirming it’s been resolved.

Regards,
Dmitry