Glenn Slaven
Glenn Slaven

Reputation: 34183

Is there any way to get Visual Studio to reload all projects when the .proj files have changed?

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)

Upvotes: 47

Views: 61856

Answers (9)

marhyno
marhyno

Reputation: 699

In VS 2022 I haven't noticed that there is a button for this when you right click on the Solution and at the bottom there is Load All Projects

enter image description here

Upvotes: 0

NiceGuyAlberto
NiceGuyAlberto

Reputation: 492

Tip: my solution contains 200+ projects and finding those who got (misteriously) unloaded required opening all the folder structure; ... I've just discovered a shortcut: (in VS 2022) it is possible to filter for unloaded projects! screenshot

Upvotes: 0

Cesc
Cesc

Reputation: 1190

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.

Upvotes: 0

Aathreya
Aathreya

Reputation: 533

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.

Upvotes: 1

Luke
Luke

Reputation: 18953

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

Upvotes: 21

ajamrozek
ajamrozek

Reputation: 190

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

Upvotes: 5

KoenJ
KoenJ

Reputation: 1141

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

Upvotes: 21

sbi
sbi

Reputation: 224049

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.

Upvotes: 6

X-Cubed
X-Cubed

Reputation: 1899

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.

Upvotes: 5

Related Questions