Reputation: 1044
I checked the solution file and the project file, and can not find anything related to this setting. When people get latest version from TFS source control, they always see the 'loaded' status, which is not really what I want.
Upvotes: 36
Views: 14689
Reputation: 1607
On MacOS with Visual Studio 2022 for Mac (i.e. v17.0 Preview, "Visual Studio Community 2022 for Mac Preview") I do not see either .sln
nor .slnf
files.
I observe that unloaded projects are saved in folder /.vs/[SolutionName]/xs/UserPrefs.xml
. And when I close Visual Studio 2022 for Mac, I see that UserPrefs.xml
is saved.
UserPrefs.xml Snippet:
<DisabledProjects>
<String>...</String>
</DisabledProjects>
Upvotes: 1
Reputation: 9953
Base on this if you want to share your load/unload setting via source control you can use solution filter file which is .slnf extension. So when you open the .slnf file instead of .sln file you will see the filtered project are loaded.
Upvotes: 0
Reputation: 11105
For anyone else coming here with Visual Studio 2019, the unloading of projects is no longer saved in the SUO (at least in my experience). To save your unloaded project settings, you want to create a solution filter file (.slnf) which is the same as your solution file (.sln) except that it stores which projects you want loaded or not when opening the solution. Once created, you will double-click the .snlf file instead of the .sln file in order to load your filtered projects.
To create the solution filter file you can follow the instructions at this link or follow the summary below:
This will add the .slnf to your recently opened solutions list so you can either open from there going forward or navigate to the .slnf file and double-click it.
If you still want to see your unloaded projects after opening the .slnf, highlight the solution from within the Solution Explorer and click the Show All Files icon.
Upvotes: 6
Reputation: 874
This information is stored in the solution user options file (.suo) which you can find in the same directory as the solution file. As the name implies this is user specific information which means sharing this across the team will be difficult because then everyone will need to live with the same options and store files in the exact location because the .suo file contains full paths.
Upvotes: 37