diff options
-rw-r--r-- | Mono.Cecil/AssemblyNameReference.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Mono.Cecil/AssemblyNameReference.cs b/Mono.Cecil/AssemblyNameReference.cs index 3a9858f..9cacef1 100644 --- a/Mono.Cecil/AssemblyNameReference.cs +++ b/Mono.Cecil/AssemblyNameReference.cs @@ -149,7 +149,7 @@ namespace Mono.Cecil { builder.Append (name); builder.Append (sep); builder.Append ("Version="); - builder.Append (Version.ToString (fieldCount: 4)); + builder.Append (version.ToString (fieldCount: 4)); builder.Append (sep); builder.Append ("Culture="); builder.Append (string.IsNullOrEmpty (culture) ? "neutral" : culture); @@ -229,6 +229,8 @@ namespace Mono.Cecil { internal AssemblyNameReference () { + this.version = Mixin.ZeroVersion; + this.token = new MetadataToken (TokenType.AssemblyRef); } public AssemblyNameReference (string name, Version version) |