diff --git a/ICSharpCode.Decompiler/Metadata/DotNetCorePathFinder.cs b/ICSharpCode.Decompiler/Metadata/DotNetCorePathFinder.cs index 30e967977..6f060c01d 100644 --- a/ICSharpCode.Decompiler/Metadata/DotNetCorePathFinder.cs +++ b/ICSharpCode.Decompiler/Metadata/DotNetCorePathFinder.cs @@ -44,7 +44,14 @@ namespace ICSharpCode.Decompiler.Metadata { var parts = fullName.Split('/'); this.Name = parts[0]; - this.Version = parts[1]; + if (parts.Length > 1) + { + this.Version = parts[1]; + } else + { + this.Version = ""; + } + this.Type = type; this.Path = path; this.RuntimeComponents = runtimeComponents ?? Empty.Array;