public NativeManifest(string manifestText) {
            if (string.IsNullOrEmpty(manifestText)) {
                manifestText = DefaultManifestXml;
            }
            _assembly = XDocument.Parse(manifestText);

            _noInherit = new NoInherit(_assembly.Root);
            _assemblyIdentity = new AssemblyIdentity(_assembly.Root);
            _trustInfo = new TrustInfo(_assembly.Root);
            _asmV3Application = new AsmV3Application(_assembly.Root);
            _dependentAssemblies = new DependentAssemblies(_assembly.Root);
            _compatibility = new Compatibility(_assembly.Root);
            _files = new AssemblyFile(_assembly.Root);
            Modified = false;
        }
Esempio n. 2
0
        public NativeManifest(string manifestText)
        {
            if (string.IsNullOrEmpty(manifestText))
            {
                manifestText = DefaultManifestXml;
            }
            _assembly = XDocument.Parse(manifestText);

            _noInherit           = new NoInherit(_assembly.Root);
            _assemblyIdentity    = new AssemblyIdentity(_assembly.Root);
            _trustInfo           = new TrustInfo(_assembly.Root);
            _asmV3Application    = new AsmV3Application(_assembly.Root);
            _dependentAssemblies = new DependentAssemblies(_assembly.Root);
            _compatibility       = new Compatibility(_assembly.Root);
            _files   = new AssemblyFile(_assembly.Root);
            Modified = false;
        }