private List <object> InstantiateObjects(string path, StatementNode rootStatementNode)
        {
            ObjectInstantiator instantiator = new ObjectInstantiator(this.OnMessage);

            instantiator.DefaultNamespaces.Add(String.Empty, "WixToolset.Simplified.Lexicon");
            instantiator.TypeCache.AddAssembly(Assembly.GetExecutingAssembly());

            List <object> items = instantiator.Instantiate(path, rootStatementNode);

            return(items);
        }
Beispiel #2
0
        private List <object> InstantiateObjects(string path, StatementNode rootStatementNode)
        {
            ObjectInstantiator instantiator = new ObjectInstantiator(this.OnMessage);

            instantiator.DefaultNamespaces.Add(String.Empty, "WixToolset.Simplified.Lexicon");
            instantiator.TypeCache.AddAssembly(Assembly.GetExecutingAssembly());

            // Include types from the assemblies containing extensions
            foreach (var extension in this.extensions)
            {
                instantiator.TypeCache.AddAssembly(extension.GetType().Assembly);
            }

            List <object> items = instantiator.Instantiate(path, rootStatementNode);

            return(items);
        }