diff options
Diffstat (limited to 'main/src/core/MonoDevelop.Core/MonoDevelop.Core.Assemblies/SystemPackage.cs')
-rw-r--r-- | main/src/core/MonoDevelop.Core/MonoDevelop.Core.Assemblies/SystemPackage.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Assemblies/SystemPackage.cs b/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Assemblies/SystemPackage.cs index a32eb63c59..e8699d76ee 100644 --- a/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Assemblies/SystemPackage.cs +++ b/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Assemblies/SystemPackage.cs @@ -73,6 +73,13 @@ namespace MonoDevelop.Core.Assemblies } } + public string GetDisplayName () + { + //for framework packages, the version is part of the name + //for other packages, include it in case it isn't + return (IsFrameworkPackage || string.IsNullOrEmpty (version))? Name : name + " " + version; + } + public string Name { get { return name; } } |