Ejemplo n.º 1
0
 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))));
 }
Ejemplo n.º 2
0
 public VsHive(VsVersion vsVersion, string rootSuffix)
 {
     VsVersion  = vsVersion;
     RootSuffix = rootSuffix;
     IsMainHive = string.IsNullOrWhiteSpace(rootSuffix);
 }
Ejemplo n.º 3
0
 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))));
 }