/// <summary> /// Adds a <Choose /> 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); }