コード例 #1
0
        /// <summary>
        /// Adds a &lt;Choose /&gt; element to the current project.
        /// </summary>
        /// <param name="label">An optional label to add to the Choose.</param>
        /// <returns>The current <see cref="ProjectCreator" />.</returns>
        public ProjectCreator Choose(string?label = null)
        {
            _lastChoose       = AddTopLevelElement(RootElement.CreateChooseElement());
            _lastChoose.Label = label;

            _lastOtherwiseItemGroup     = null;
            _lastOtherwisePropertyGroup = null;
            _lastWhen              = null;
            _lastWhenItemGroup     = null;
            _lastWhenPropertyGroup = null;

            return(this);
        }