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); } } } }
public Definition() : base(Construct.Definition) { DependentAssemblies.Add(BasicTypes.SystemAssembly); DependentNamespaces.Add(BasicTypes.SystemNamespace); }
public override bool ShouldSerializeDependentAssemblies() => DependentAssemblies.SequenceEqual(DefaultDependentAssemblies);
public override bool ShouldSerializeDependentAssemblies() => DependentAssemblies.SequenceEqual(ApplicationManifestSettings.DefaultDependentAssemblies);