diff options
-rw-r--r-- | main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/MSBuildProjectHandler.cs | 5 |
1 files changed, 5 insertions, 0 deletions
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"); |