コード例 #1
0
        /// <summary>
        /// Return all possibly valid project names in the current solution. This includes all
        /// unique names and safe names.
        /// </summary>
        /// <returns></returns>
        protected IEnumerable <string> GetAllValidProjectNames()
        {
            var safeNames   = _solutionManager.GetProjects().Select(p => _solutionManager.GetProjectSafeName(p));
            var uniqueNames = _solutionManager.GetProjects().Select(p => p.GetCustomUniqueName());

            return(uniqueNames.Concat(safeNames).Distinct());
        }
コード例 #2
0
ファイル: PowerShellHost.cs プロジェクト: lazlojuly/nuget
        public string[] GetAvailableProjects()
        {
            Debug.Assert(_solutionManager != null);

            var projectSafeNames = (_solutionManager.GetProjects().Select(p => _solutionManager.GetProjectSafeName(p))).ToArray();

            return(projectSafeNames);
        }