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:
authorMikayla Hutchinson <m.j.hutchinson@gmail.com>2016-09-10 00:28:28 +0300
committerMikayla Hutchinson <m.j.hutchinson@gmail.com>2016-09-12 23:50:49 +0300
commit5b1d180609baa84c7a43d7fc1a743e3d784463ee (patch)
tree8478583f5fc7917242300f9a257585ba627a0ba2 /main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects.OptionPanels
parent7006cc5043fccb3b66eb40a0ea188adc42063e92 (diff)
[netstandard] Fix clearing package.config junk
Diffstat (limited to 'main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects.OptionPanels')
-rw-r--r--main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects.OptionPanels/PortableRuntimeOptionsPanel.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects.OptionPanels/PortableRuntimeOptionsPanel.cs b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects.OptionPanels/PortableRuntimeOptionsPanel.cs
index 77080cddc5..e2d7fd974c 100644
--- a/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects.OptionPanels/PortableRuntimeOptionsPanel.cs
+++ b/main/src/core/MonoDevelop.Ide/MonoDevelop.Ide.Projects.OptionPanels/PortableRuntimeOptionsPanel.cs
@@ -415,11 +415,11 @@ namespace MonoDevelop.Ide.Projects.OptionPanels
//HACK: we don't have the info to do this properly, really the package management addin should handle this
static bool IsFromPackage (ProjectReference r)
{
- FilePath hintPath = r.Metadata.GetValue<string> ("HintPath");
- if (hintPath.IsNullOrEmpty)
+ if (r.ReferenceType != ReferenceType.Assembly) {
return false;
+ }
var packagesDir = r.Project.ParentSolution.BaseDirectory.Combine ("packages");
- return hintPath.IsChildPathOf (packagesDir);
+ return r.GetReferencedFileNames(null).Any (f => ((FilePath)f).IsChildPathOf (packagesDir));
}
static string GetPclShortNameMapping (TargetFrameworkMoniker tfm)