43

If I do an svn update while I have Visual Studio open and a number of project files have changed (but not the solution file) I have to wait and click yes on the reload project dialog box every time. Sometimes this can take a while depending on how many projects have changed and how slow my pc is being.

Is there a way to say 'reload all' after the first dialog pops up, like holding down shift to force no to all in the Windows Explorer dialog? (note: I already tried this, it doesn't work)

Glenn Slaven
  • 33,720
  • 26
  • 113
  • 165

7 Answers7

22

if you install this plugin from the visual studio gallery:

http://visualstudiogallery.msdn.microsoft.com/d491911d-97f3-4cf6-87b0-6a2882120acf/

The button "Reload all" appears.

Regards, Koen

KoenJ
  • 1,093
  • 2
  • 13
  • 24
17

Deleting my solution_name.v11.suo file (hidden file stored in same location as solution file) seemed to do the trick.

Luke
  • 18,585
  • 24
  • 87
  • 110
6

Unfortunately, VS doesn't come with a way to do this. A probable workaround is to touch the solution file before activation VS. It would then reload the whole solution.

There must, however, be ways to do this programmatically, since I remember CMake solutions asking me whether I wanted to reload the whole solution after individual projects were re-generated. CMake is Open Source, so if you're really desperate, you might want to look into it.

sbi
  • 219,715
  • 46
  • 258
  • 445
5

Use a tool like VisualSVN to automate the process for you. It allows you to perform the update within Visual Studio, then automatically reloads the projects that have been modified.

X-Cubed
  • 1,869
  • 15
  • 24
  • 4
    All very well if you use subversion. Are you aware of a git/perforce equivalent? – RJFalconer Apr 11 '12 at 09:44
  • GitExtensions integrates GIT with VS. https://github.com/gitextensions/gitextensions Perforce version here: https://www.perforce.com/plugins-integrations/visual-studio-plugin – Denise Skidmore Apr 04 '18 at 19:49
4

I got my project to bind in my solution by closing the solution (File -> Close Solution) then reopening it.

ajamrozek
  • 160
  • 10
1

If your project is hosted on a TFS, then delete the solution file and get latest. VS will prompt you to Reload all projects. Press Reload All.

Aathreya
  • 523
  • 4
  • 10
0

Adding a bit automation here, in case you have multiple solutions and fd installed (also available for windows), fd -IH suo -X rm will delete all those .suo files pointed out by Luke.

Cesc
  • 904
  • 1
  • 9
  • 17