In the package I'm trying to build I'm registering to the "BeforeClosing" event in the following way:
DTE dte = Package.GetGlobalService(typeof(DTE)) as DTE; dte.Events.SolutionEvents.BeforeClosing += SolutionEvents_BeforeClosing;and the signature for this event handler looks like this:
private void SolutionEvents_BeforeClosing() { //Check some stuff //Cancel the close operation }Is it possible to cancel the closing of the solution from within the event handler?