Exemplo n.º 1
0
        void RegisterPcFile(string file)
        {
            LibraryPackageInfo pinfo = MonoTargetRuntime.PcFileCache.GetPackageInfo(file);

            if (pinfo.IsValidPackage)
            {
                SystemPackage sp = RegisterPackage(pinfo, true);
                packages.Add(sp);
            }
        }
Exemplo n.º 2
0
        private void ParsePCFile(string pcfile)
        {
            // Don't register the package twice
            string pname = Path.GetFileNameWithoutExtension(pcfile);

            if (RuntimeAssemblyContext.GetPackageInternal(pname) != null || IsCorePackage(pname))
            {
                return;
            }

            LibraryPackageInfo pinfo = PcFileCache.GetPackageInfo(pcfile);

            if (pinfo.IsValidPackage)
            {
                RuntimeAssemblyContext.RegisterPackage(pinfo, false);
            }
        }
Exemplo n.º 3
0
        internal SystemPackageInfo(LibraryPackageInfo info)
        {
            Name            = info.Name;
            IsGacPackage    = info.IsGacPackage;
            Version         = info.Version;
            Description     = info.Description;
            TargetFramework = TargetFrameworkMoniker.Parse(info.GetData("targetFramework"));
            CustomData      = info.CustomData;
            Requires        = info.Requires;

            Assemblies = new List <AssemblyInfo> ();
            if (info.IsValidPackage)
            {
                foreach (PackageAssemblyInfo asm in info.Assemblies)
                {
                    Assemblies.Add(new AssemblyInfo(asm));
                }
            }
        }
Exemplo n.º 4
0
		internal SystemPackage RegisterPackage (LibraryPackageInfo pinfo, bool isInternal)
		{
			return RegisterPackage (new SystemPackageInfo (pinfo), isInternal, pinfo.Assemblies.ToArray ());
		}
Exemplo n.º 5
0
		internal SystemPackageInfo (LibraryPackageInfo info)
		{
			Name = info.Name;
			IsGacPackage = info.IsGacPackage;
			Version = info.Version;
			Description = info.Description;
			TargetFramework = TargetFrameworkMoniker.Parse (info.GetData ("targetFramework"));
			CustomData = info.CustomData;
			Requires = info.Requires;
			
			Assemblies = new List<AssemblyInfo> ();
			if (info.IsValidPackage) {
				foreach (PackageAssemblyInfo asm in info.Assemblies)
					Assemblies.Add (new AssemblyInfo (asm));
			}
		}
Exemplo n.º 6
0
 internal SystemPackage RegisterPackage(LibraryPackageInfo pinfo, bool isInternal)
 {
     return(RegisterPackage(new SystemPackageInfo(pinfo), isInternal, pinfo.Assemblies.ToArray()));
 }