public static SupportsProjectType ( string projectFile ) : bool | ||
projectFile | string | |
return | bool |
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;
}