Browse Source

Merge branch 'bernd5-master'

pull/2235/head
Siegfried Pammer 5 years ago
parent
commit
84318f4a74
  1. 10
      ICSharpCode.Decompiler/Metadata/DotNetCorePathFinder.cs

10
ICSharpCode.Decompiler/Metadata/DotNetCorePathFinder.cs

@ -44,7 +44,15 @@ namespace ICSharpCode.Decompiler.Metadata
{ {
var parts = fullName.Split('/'); var parts = fullName.Split('/');
this.Name = parts[0]; this.Name = parts[0];
this.Version = parts[1]; if (parts.Length > 1)
{
this.Version = parts[1];
}
else
{
this.Version = "<UNKNOWN>";
}
this.Type = type; this.Type = type;
this.Path = path; this.Path = path;
this.RuntimeComponents = runtimeComponents ?? Empty<string>.Array; this.RuntimeComponents = runtimeComponents ?? Empty<string>.Array;

Loading…
Cancel
Save