Visual Studio Tips & Tricks

From LentoMan
Revision as of 15:57, 7 December 2015 by LentoMan (talk | contribs) (Created page with "== 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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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.