3

Is there a way to reload a property sheet that was edited outside of Visual Studio? Visual Studio doesn't detected automatically that the file was modified (like it does with project files). The only way I've found so far is to close and reopen the whole solution (but that's no good way).

Sebastian Krysmanski
  • 8,114
  • 10
  • 49
  • 91

1 Answers1

4

Only a partial solution perhaps for your (and my) needs, but I've found it helpful to touch the .sln file. This causes Visual Studio to wig out and ask if you want to reload all the projects. Select "Yes" and then you'll notice the properties have refreshed. I make sure that my scripts which update property files also touch any related solution file(s).

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

Community
  • 1
  • 1
Peter M
  • 1,918
  • 16
  • 24
  • Do you mean editing (e.g. add a space) the sln with external text editor? – cppBeginner Jul 23 '17 at 10:17
  • 1
    Yes, the Unix/Linux "touch" program simply updates the timestamp on the file without making other changes to the file so that Visual Studio will reload everything. Adding whitespace in the sln will do the same thing. I use the "touch" for Windows that's included with git (also msys2). – Peter M Jul 23 '17 at 17:18