How to prevent VS 2008 from opening files when opening a solution

When I open the solution in VS 2008, I do not want it to open all the files that I opened the last time. I just want him to open the solution. It is not possible to see the configuration parameter for this, is it possible?

+3
source share
2 answers

You can automate the process of closing all files before closing a solution by adding a handler for the BeforeClosing event for EnvDTE.SolutionEvents - this will be called when VS exits.

VS2005 EnvironmentEvents :

Private Sub SolutionEvents_BeforeClosing() Handles SolutionEvents.BeforeClosing
    DTE.ExecuteCommand("Window.CloseAllDocuments")
End Sub

Visual Studio 2008, , , , .

, .suo , , , , AfterClosing.

+1

Source: https://habr.com/ru/post/1697927/


All Articles