From bcd66920d963483e7d638a2339c4022fe035b529 Mon Sep 17 00:00:00 2001 From: Lluis Sanchez Gual Date: Tue, 27 May 2014 23:22:57 +0200 Subject: Added workaround for shared project loading issue VS doesn't include the curly braces in the ProjectGuid of shared projects. This workaround adds the braces. --- .../MonoDevelop.Projects.Formats.MSBuild/MSBuildProjectHandler.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/MSBuildProjectHandler.cs b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/MSBuildProjectHandler.cs index 185466e5ec..c435cfc25f 100644 --- a/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/MSBuildProjectHandler.cs +++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/MSBuildProjectHandler.cs @@ -358,6 +358,11 @@ namespace MonoDevelop.Projects.Formats.MSBuild 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"); -- cgit v1.2.3