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).
Asked
Active
Viewed 1,283 times
3
-
Removing and adding it back would be another way. You probably don't like that either. I'd recommend my doctor's advice, if it hurts then don't do it. – Hans Passant Jan 12 '12 at 13:30
-
This solution is even worse as it'll "remove" dependency information in other projects. – Sebastian Krysmanski Jan 13 '12 at 09:59
-
1Hmm, no, not the project, just the property sheet. – Hans Passant Jan 13 '12 at 10:44
-
1Ah - ok. But that only works (easily) if it's not being use by multiple project, right? – Sebastian Krysmanski Jan 13 '12 at 11:55
1 Answers
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?
-
Do you mean editing (e.g. add a space) the sln with external text editor? – cppBeginner Jul 23 '17 at 10:17
-
1Yes, 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