Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLluis Sanchez Gual <lluis@xamarin.com>2014-05-28 01:22:57 +0400
committerLluis Sanchez <lluis@xamarin.com>2014-05-28 01:24:18 +0400
commitbcd66920d963483e7d638a2339c4022fe035b529 (patch)
tree5bacd9c7ac1aad4a051e5e699e15533a1bba42f5
parent3efbb96fa3ef47a060d7e77a1a2f42b5237a835d (diff)
Added workaround for shared project loading issuemonodevelop-5.0.0.878monodevelop-5.0
VS doesn't include the curly braces in the ProjectGuid of shared projects. This workaround adds the braces.
-rw-r--r--main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/MSBuildProjectHandler.cs5
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");