예제 #1
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));
                }
            }
        }
예제 #2
0
 internal protected override object OnDeserialize(SerializationContext serCtx, object mapData, DataNode data)
 {
     return(TargetFrameworkMoniker.Parse(((DataValue)data).Value));
 }