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 Gual <lluis@xamarin.com>2014-05-28 01:23:47 +0400
commit3c1c49bdb5c3fd534d2e948814e02bd4141d9fff (patch)
treef143f98bd75c3462a3edbcde0bd2604accc020ba /main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/MSBuildProjectHandler.cs
parent511e4f23f9fb2fd413ef8b4d9705ea1e189d3ad0 (diff)
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.
Diffstat (limited to 'main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/MSBuildProjectHandler.cs')
-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 a9c519ef31..8c60d61844 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");