public bool TryAddReference(string filePath, out string message) { AssemblyReference assemblyReference; AssemblyReference.TryLoadReference(filePath, out assemblyReference, out message); if (assemblyReference == null) { return(false); } assemblyReference.IsInstalled = assemblyReference.IsRecent = true; RecentReferences.References.Add(assemblyReference); InstalledReferences.References.Add(assemblyReference); return(true); }