File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -77,10 +77,7 @@ public AssemblyAttributes Attributes {
77
77
/// <exception cref="ArgumentNullException">If <paramref name="value"/> is <c>null</c></exception>
78
78
public PublicKeyBase PublicKeyOrToken {
79
79
get => publicKeyOrToken ;
80
- set {
81
- publicKeyOrToken = value ?? throw new ArgumentNullException ( nameof ( value ) ) ;
82
- ModifyAttributes ( value is PublicKey , AssemblyAttributes . PublicKey ) ;
83
- }
80
+ set => publicKeyOrToken = value ?? throw new ArgumentNullException ( nameof ( value ) ) ;
84
81
}
85
82
/// <summary/>
86
83
protected PublicKeyBase publicKeyOrToken ;
Original file line number Diff line number Diff line change @@ -773,6 +773,7 @@ AssemblyRef ReadAssemblyRef() {
773
773
asmRef . PublicKeyOrToken = new PublicKey ( ) ;
774
774
else
775
775
asmRef . PublicKeyOrToken = PublicKeyBase . CreatePublicKey ( Utils . ParseBytes ( value ) ) ;
776
+ asmRef . Attributes |= AssemblyAttributes . PublicKey ;
776
777
break ;
777
778
778
779
case "PUBLICKEYTOKEN" :
@@ -781,6 +782,7 @@ AssemblyRef ReadAssemblyRef() {
781
782
asmRef . PublicKeyOrToken = new PublicKeyToken ( ) ;
782
783
else
783
784
asmRef . PublicKeyOrToken = PublicKeyBase . CreatePublicKeyToken ( Utils . ParseBytes ( value ) ) ;
785
+ asmRef . Attributes &= ~ AssemblyAttributes . PublicKey ;
784
786
break ;
785
787
786
788
case "CULTURE" :
You can’t perform that action at this time.
0 commit comments