private void OnBeforeClosing()
        {
            DefaultNuGetProjectName = null;
            _projectSystemCache.Clear();
            _cacheInitialized = false;

            SolutionClosing?.Invoke(this, EventArgs.Empty);

            _solutionOpenedRaised = false;
        }
Example #2
0
 /// <summary>
 /// Handle the event when the solution has been closed
 /// </summary>
 private void OnAfterClosing()
 {
     IsSolutionClosing = true;
     try
     {
         _lastCollectedActiveProject = null;
         _ = Machines.DisposeMachinesAsync();
         SolutionClosing?.Invoke(this, EventArgs.Empty);
     }
     finally
     {
         IsSolutionClosing = false;
     }
 }
Example #3
0
        private void OnBeforeClosing()
        {
            NuGetPowerShellUsage.RaiseSolutionCloseEvent();

            SolutionClosing?.Invoke(this, EventArgs.Empty);
        }
Example #4
0
 private void OnBeforeClosing()
 {
     SolutionClosing?.Invoke(this, EventArgs.Empty);
 }
Example #5
0
 /// <summary>
 /// Fires the <see cref="SolutionClosed"/> event
 /// </summary>
 protected virtual void OnSolutionClosing()
 {
     SolutionClosing?.Invoke(this, EventArgs.Empty);
 }
Example #6
0
        int IVsSolutionEvents.OnBeforeCloseSolution(object pUnkReserved)
        {
            SolutionClosing?.Invoke(this, new ParamEventArgs(pUnkReserved));

            return(VSConstants.S_OK);
        }