Esempio n. 1
0
        public override object GetProjectItemsItemGroup()
        {
            NetCore.ProjectItemGroup projectItemGroup = new NetCore.ProjectItemGroup();

            List <NetCore.ProjectItemGroupEmbeddedResource> embeddedResources = new List <NetCore.ProjectItemGroupEmbeddedResource>();

            embeddedResources.AddRange(this.ResXEntries);
            embeddedResources.AddRange(this.OtherEmbeddedResources);

            List <NetCore.ProjectItemGroupCompile> compileFiles = new List <NetCore.ProjectItemGroupCompile>();

            compileFiles.AddRange(this.NormalCodeEntries);

            projectItemGroup.Compile = compileFiles.ToArray();

            int xamlFileEntriesCount = base.XamlFileEntries.Count;
            List <NetCore.ProjectItemGroupEmbeddedResource> xamlPageList = new List <NetCore.ProjectItemGroupEmbeddedResource>(xamlFileEntriesCount);

            for (int i = 0; i < xamlFileEntriesCount; i++)
            {
                if (XamlFileEntries[i] is NetCore.ProjectItemGroupEmbeddedResource)
                {
                    xamlPageList.Add((NetCore.ProjectItemGroupEmbeddedResource)XamlFileEntries[i]);
                }
            }

            embeddedResources.AddRange(xamlPageList.ToArray());

            projectItemGroup.EmbeddedResource = embeddedResources.ToArray();

            return(projectItemGroup);
        }
Esempio n. 2
0
        public override void CreateReferencesProjectItem(int dependingOnAssembliesCount)
        {
            if (this.projectReferences == null)
            {
                this.projectReferences = new NetCore.ProjectItemGroup();
            }

            this.projectReferences.Reference = new NetCore.ProjectItemGroupReference[dependingOnAssembliesCount];
        }