/// <summary>
        /// Populates the nuget actions.
        /// </summary>
        /// <param name="viewModel">The view model.</param>
        internal void PopulateNugetActions(NugetPackagesBaseViewModel viewModel)
        {
            if (viewModel != null)
            {
                NugetActions nugetActions = viewModel.GetNugetActions();

                this.commands += nugetActions.NugetCommands;
                this.postNugetCommands.AddRange(nugetActions.PostNugetCommands);
                this.postNugetFileOperations.AddRange(nugetActions.PostNugetFileOperations);
            }
        }
        /// <summary>
        /// Populates the nuget actions.
        /// </summary>
        /// <param name="viewModel">The view model.</param>
        internal void PopulateNugetActions(NugetPackagesBaseViewModel viewModel)
        {
            string viewModelName = string.Empty;
            string step          = string.Empty;

            try
            {
                if (viewModel != null)
                {
                    viewModelName = viewModel.DisplayName;

                    TraceService.WriteLine("ProjectsController::PopulateNugetActions viewModel=" + viewModelName);

                    NugetActions nugetActions = viewModel.GetNugetActions();

                    step = "NugetCommands";

                    if (nugetActions.NugetCommands != string.Empty)
                    {
                        this.commands += nugetActions.NugetCommands;
                    }

                    step = "PostNugetCommands";

                    if (nugetActions.PostNugetCommands != null)
                    {
                        this.postNugetCommands.AddRange(nugetActions.PostNugetCommands);
                    }

                    step = "PostNugetFileOperations";

                    if (nugetActions.PostNugetFileOperations != null)
                    {
                        this.postNugetFileOperations.AddRange(nugetActions.PostNugetFileOperations);
                    }
                }
            }
            catch (Exception exception)
            {
                TraceService.WriteError("Error Adding Nuget Actions viewModel=" + viewModelName + "step=" + step + "  exception=" + exception.Message);
            }
        }
        /// <summary>
        /// Populates the nuget actions.
        /// </summary>
        /// <param name="viewModel">The view model.</param>
        internal void PopulateNugetActions(NugetPackagesBaseViewModel viewModel)
        {
            if (viewModel != null)
            {
                NugetActions nugetActions = viewModel.GetNugetActions();

                this.commands += nugetActions.NugetCommands;
                this.postNugetCommands.AddRange(nugetActions.PostNugetCommands);
                this.postNugetFileOperations.AddRange(nugetActions.PostNugetFileOperations);
            }
        }
        /// <summary>
        /// Populates the nuget actions.
        /// </summary>
        /// <param name="viewModel">The view model.</param>
        internal void PopulateNugetActions(NugetPackagesBaseViewModel viewModel)
        {
            string viewModelName = string.Empty;
            string step = string.Empty;

            try
            {
                if (viewModel != null)
                {
                    viewModelName = viewModel.DisplayName;

                    TraceService.WriteLine("ProjectsController::PopulateNugetActions viewModel=" + viewModelName);

                    NugetActions nugetActions = viewModel.GetNugetActions();

                    step = "NugetCommands";

                    if (nugetActions.NugetCommands != string.Empty)
                    {
                        this.commands += nugetActions.NugetCommands;
                    }

                    step = "PostNugetCommands";

                    if (nugetActions.PostNugetCommands != null)
                    {
                        this.postNugetCommands.AddRange(nugetActions.PostNugetCommands);
                    }

                    step = "PostNugetFileOperations";

                    if (nugetActions.PostNugetFileOperations != null)
                    {
                        this.postNugetFileOperations.AddRange(nugetActions.PostNugetFileOperations);
                    }
                }
            }
            catch (Exception exception)
            {
                TraceService.WriteError("Error Adding Nuget Actions viewModel=" + viewModelName + "step=" + step + "  exception=" + exception.Message);
            }
        }