internal static WebRole GetWebRole(string rootPath, string name) { CloudServiceProject service = new CloudServiceProject(rootPath, FileUtilities.GetContentFilePath("Services")); return service.Components.GetWebRole(name); }