Skip to content
This repository has been archived by the owner on Oct 4, 2021. It is now read-only.

Commit

Permalink
Added workaround for shared project loading issue
Browse files Browse the repository at this point in the history
VS doesn't include the curly braces in the ProjectGuid of shared projects.
This workaround adds the braces.
  • Loading branch information
slluis committed May 27, 2014
1 parent 3efbb96 commit bcd6692
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -358,6 +358,11 @@ public SolutionEntityItem Load (IProgressMonitor monitor, string fileName, MSBui
if (itemGuid == null)
throw new UserException ("Project file doesn't have a valid ProjectGuid");

// Workaround for a VS issue. VS doesn't include the curly braces in the ProjectGuid
// of shared projects.
if (!itemGuid.StartsWith ("{") && fileName.EndsWith (".shproj"))
itemGuid = "{" + itemGuid + "}";

itemGuid = itemGuid.ToUpper ();
string projectTypeGuids = globalGroup.GetPropertyValue ("ProjectTypeGuids");
string itemType = globalGroup.GetPropertyValue ("ItemType");
Expand Down

0 comments on commit bcd6692

Please sign in to comment.