Ejemplo n.º 1
0
 protected override CliRuntimeEnvironmentVersion GetVersion(XmlElement xmlNode)
 {
     return(new CliRuntimeEnvironmentVersion(this, xmlNode, CliGateway.CreateIdentityManager(CliFrameworkPlatform.AnyPlatform, CliFrameworkVersion.v1_0_3705, true, false, false, CliRuntimeEnvironmentVersion.GetHintPaths(xmlNode, this.XmlNamespaceManager).ToArray())));
 }
Ejemplo n.º 2
0
 public static IAssemblyUniqueIdentifier GetVersionedCommonLanguageRuntimeLibrary(CliFrameworkVersion frameworkVersion = CliFrameworkVersion.CurrentVersion)
 {
     return(CliGateway.GetCoreLibraryIdentifier(frameworkVersion));
 }
Ejemplo n.º 3
0
        protected override CliRuntimeEnvironmentVersion GetVersion(CliRuntimeEnvironmentVersion previousVersion, XmlElement derivedVersion)
        {
            List <string>       previousHintPaths = new List <string>();
            CliFrameworkVersion version           = GetVersion(CliRuntimeEnvironmentVersion.GetXmlVersionString(derivedVersion));

            //if (derivedVersion.Name != "vre:BreakingVersion")
            //{
            var currentVersion = previousVersion.InitialVersion;

            while (currentVersion != null)
            {
                previousHintPaths.AddRange(currentVersion.HintPaths);
                currentVersion = currentVersion.NextVersion;
            }
            //}
            previousHintPaths.AddRange(CliRuntimeEnvironmentVersion.GetHintPaths(derivedVersion, this.XmlNamespaceManager));
            return(new CliRuntimeEnvironmentVersion(this, previousVersion, derivedVersion, CliGateway.CreateIdentityManager(CliFrameworkPlatform.AnyPlatform, version, true, false, false, ((IEnumerable <string>)previousHintPaths).Reverse().ToArray())));
        }