public static IEnumerable <VsHive> GetAllHives(VsVersion vsVersion) { return(VsLocalDirectory.EnumerateDirectories().Where(d => d.Name.StartsWith(vsVersion.Version)) .Select(d => new VsHive(vsVersion, d.Name.Substring(vsVersion.Version.Length)))); }
public VsHive(VsVersion vsVersion, string rootSuffix) { VsVersion = vsVersion; RootSuffix = rootSuffix; IsMainHive = string.IsNullOrWhiteSpace(rootSuffix); }
private bool IsSupportedByTarget(VsVersion vsVersion) { // todo add support for specific productIds return(vsix.Targets.DistinctBy(req => req.VersionRange) .Any(target => target.VersionRange.Contains(Version.Parse(vsVersion.Version)))); }