Beispiel #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))));
 }
Beispiel #2
0
 public VsHive(VsVersion vsVersion, string rootSuffix)
 {
     VsVersion  = vsVersion;
     RootSuffix = rootSuffix;
     IsMainHive = string.IsNullOrWhiteSpace(rootSuffix);
 }
Beispiel #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))));
 }