File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -354,8 +354,17 @@ let isMscorlib data =
354
354
355
355
[<Sealed>]
356
356
type ILAssemblyRef ( data ) =
357
- let uniqueStamp = AssemblyRefUniqueStampGenerator.Encode data
358
- let uniqueIgnoringVersionStamp = AssemblyRefUniqueStampGenerator.Encode { data with assemRefVersion = None }
357
+ let pkToken key =
358
+ match key with
359
+ | Some ( PublicKey bytes) -> Some ( PublicKey ( SHA1.sha1HashBytes bytes))
360
+ | Some ( PublicKeyToken token) -> Some ( PublicKey ( token))
361
+ | None -> None
362
+
363
+ let uniqueStamp =
364
+ AssemblyRefUniqueStampGenerator.Encode { data with assemRefPublicKeyInfo = pkToken ( data.assemRefPublicKeyInfo) }
365
+
366
+ let uniqueIgnoringVersionStamp =
367
+ AssemblyRefUniqueStampGenerator.Encode { data with assemRefVersion = None; assemRefPublicKeyInfo = pkToken ( data.assemRefPublicKeyInfo) }
359
368
360
369
member x.Name = data.assemRefName
361
370
You can’t perform that action at this time.
0 commit comments