示例#1
0
        /// <summary>
        /// Adds and intem inside a &lt;ItemGroup/&gt; node in the following form:
        /// <c>&lt;{itemType} Include="{itemPath}" [PackagePath="{packagePath}" Pack="{pack}" Version="{version}"] /&gt;</c>
        /// </summary>
        public ProjectFileBuilder WithItem(
            string itemType,
            string itemPath,
            string packagePath = null,
            string pack        = null,
            string version     = null)
        {
            ItemGroupEntries.Add(new ItemEntry(itemType, itemPath, packagePath, pack, version));

            return(this);
        }
示例#2
0
        /// <summary>
        /// Adds and intem inside a &lt;ItemGroup/&gt; node in the following form:
        /// <c>&lt;{itemType} Include="{itemPath}" [PackagePath="{packagePath}"] /&gt;</c>
        /// </summary>
        public ProjectFileBuilder WithItem(string itemType, string itemPath, string packagePath)
        {
            ItemGroupEntries.Add(new ItemEntry(itemType, itemPath, packagePath));

            return(this);
        }