public static ProjectReference Convert(Microsoft.PythonTools.Interpreter.ProjectReference reference) { return(new ProjectReference() { name = reference.Name, kind = GetReferenceKind(reference.Kind), assemblyName = GetReferenceAssembly(reference) }); }
private static string GetReferenceAssembly(Microsoft.PythonTools.Interpreter.ProjectReference reference) { switch (reference.Kind) { case ProjectReferenceKind.Assembly: return(((ProjectAssemblyReference)reference).AssemblyName.FullName); default: return(null); } }