public static bool SupportsProjectType (string projectFile)
{
if (!string.IsNullOrWhiteSpace (projectFile)) {
// If we have a project file, try to load it.
try {
using (var monitor = new ConsoleProgressMonitor ()) {
return MSBuildProjectService.LoadItem (monitor, projectFile, null, null, null) != null;
}
} catch {
return false;
}
}
return false;
}