Beispiel #1
0
        void RegisterPcFile(string file)
        {
            LibraryPackageInfo pinfo = MonoTargetRuntime.PcFileCache.GetPackageInfo(file);

            if (pinfo.IsValidPackage)
            {
                SystemPackage sp = RegisterPackage(pinfo, true);
                packages.Add(sp);
            }
        }
        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);
            }
        }
Beispiel #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));
                }
            }
        }
		internal SystemPackage RegisterPackage (LibraryPackageInfo pinfo, bool isInternal)
		{
			return RegisterPackage (new SystemPackageInfo (pinfo), isInternal, pinfo.Assemblies.ToArray ());
		}
Beispiel #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));
			}
		}
 internal SystemPackage RegisterPackage(LibraryPackageInfo pinfo, bool isInternal)
 {
     return(RegisterPackage(new SystemPackageInfo(pinfo), isInternal, pinfo.Assemblies.ToArray()));
 }