diff options
author | Lluis Sanchez Gual <lluis@xamarin.com> | 2014-05-28 14:50:17 +0400 |
---|---|---|
committer | Lluis Sanchez Gual <lluis@xamarin.com> | 2014-05-28 14:51:17 +0400 |
commit | d5fda876ab112168dbbf95bd3ce3dd0de606322b (patch) | |
tree | 455f22703edbd4c997b0f3b91f294b1e542c6d68 /main/src/core/MonoDevelop.Core/MonoDevelop.Projects.Formats.MSBuild/MSBuildProjectHandler.cs | |
parent | 30eac1c1dc3bab3429890f8fb77842537fee601c (diff) |
Fix issue when saving file links in shared projects
The link path doesn't have to be prefixed with the directory location
variable since it is a path relative to the project folder.
Fixes bug #20063 - Adding a new file to a shared project results in a
self referencing file link
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.cs | 2 |
1 files changed, 1 insertions, 1 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 8c60d61844..5b7e75a11a 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 @@ -1502,7 +1502,7 @@ namespace MonoDevelop.Projects.Formats.MSBuild buildItem.UnsetMetadata ("LastGenOutput"); if (!string.IsNullOrEmpty (file.Link)) - buildItem.SetMetadata ("Link", pathPrefix + MSBuildProjectService.ToMSBuildPathRelative (Item.ItemDirectory, file.Link)); + buildItem.SetMetadata ("Link", MSBuildProjectService.ToMSBuildPathRelative (Item.ItemDirectory, file.Link)); else buildItem.UnsetMetadata ("Link"); |