Exemplo n.º 1
0
        internal void Read(XmlReader reader)
        {
            while (reader.Read())
            {
                // Look for the end element.
                if (reader.NodeType == XmlNodeType.EndElement && AppConfig.StringEquals(reader.Name, "runtime"))
                {
                    return;
                }

                // Look for a <dependentAssembly> element
                if (reader.NodeType == XmlNodeType.Element && AppConfig.StringEquals(reader.Name, "dependentAssembly"))
                {
                    var dependentAssembly = new DependentAssembly();
                    dependentAssembly.Read(reader);

                    // Only add if there was an <assemblyIdentity> tag.
                    // Otherwise, this section is no use.
                    if (dependentAssembly.PartialAssemblyName != null)
                    {
                        DependentAssemblies.Add(dependentAssembly);
                    }
                }
            }
        }
Exemplo n.º 2
0
 public Definition() : base(Construct.Definition)
 {
     DependentAssemblies.Add(BasicTypes.SystemAssembly);
     DependentNamespaces.Add(BasicTypes.SystemNamespace);
 }
Exemplo n.º 3
0
 public override bool ShouldSerializeDependentAssemblies()
 => DependentAssemblies.SequenceEqual(DefaultDependentAssemblies);
Exemplo n.º 4
0
 public override bool ShouldSerializeDependentAssemblies()
 => DependentAssemblies.SequenceEqual(ApplicationManifestSettings.DefaultDependentAssemblies);