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:
authorMarius Ungureanu <marius.ungureanu@xamarin.com>2015-11-24 13:05:30 +0300
committerMarius Ungureanu <marius.ungureanu@xamarin.com>2015-11-24 13:06:54 +0300
commitaf1940625c6a0f0b1d21e2f5572fbefa83ce1bf9 (patch)
tree3574e0926ea355de420a6c2c9737d9a91754aef2 /main/src/addins/VersionControl
parenta631f6974de3449f5db6b7cd151e8b782b7c0fce (diff)
[VCS] Fix publishing of relative projects with nuget
This fixes an issue in VersionControl where a NuGet package would not have an absolute path, but a relative path to the item.
Diffstat (limited to 'main/src/addins/VersionControl')
-rw-r--r--main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl/PublishCommand.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl/PublishCommand.cs b/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl/PublishCommand.cs
index 5eca553917..7f0f78f8d1 100644
--- a/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl/PublishCommand.cs
+++ b/main/src/addins/VersionControl/MonoDevelop.VersionControl/MonoDevelop.VersionControl/PublishCommand.cs
@@ -57,7 +57,7 @@ namespace MonoDevelop.VersionControl
{
// Ensure that we strip out all linked files from outside of the solution/projects path.
if (entry is IWorkspaceFileObject)
- files.AddRange (((IWorkspaceFileObject)entry).GetItemFiles (true).Where (file => file.IsChildPathOf (entry.BaseDirectory)));
+ files.AddRange (((IWorkspaceFileObject)entry).GetItemFiles (true).Where (file => file.CanonicalPath.IsChildPathOf (entry.BaseDirectory)));
}
public static bool CanPublish (Repository vc, string path, bool isDir) {