Visual Studio Tips & Tricks
Jump to navigation
Jump to search
Common Issues And How To Resolve
- Problem
- You get an error while opening project: "Projects have recently been added to this solution. Do you want to get them from source control?"
- Solution
- Click Yes
- Go to. File->Source Control->Advanced->Change Source Control
- Select your solution (.sln) in the list and click unbind.
- Reply Unbind if you get a popup dialog.
- Click Ok to close Change Source Control window and save changes.
- Right click solution in Solution Explorer and select Open Folder in Files Explorer
- Select File->Close Solution
- Return to Files Explorer and make a backup of your .sln file
- Open your .sln file with a text editor, for example Notepad++
- Find and delete section from and including GlobalSection(TeamFoundationVersionControl) = preSolution to and including its EndGlobalSection
- Save and exit your text editor
- Open your solution in Visual Studio
- Return to File->Source Control->Advanced->Change Source Control
- Select your solution in the list, probably at the bottom, click Bind'.
- Click Ok to close Change Source Control window and save changes.
- Test closing and opening solution.
- You can now check in the fixed solution file, compare changes before checking in to make sure only the preSolution section were changed.
- Tell other project members to get the file, they may need Source Control->Get Specific Changes and select overwrite file even if version matches.