public bool IsSolutionItemFile (string filename) { if (filename.StartsWith ("file://")) filename = new Uri(filename).LocalPath; filename = GetTargetFile (filename); return GetExtensionChain (null).IsSolutionItemFile (filename); }