File tree 2 files changed +8
-2
lines changed
docs/release-notes/FSharp.Compiler.Service
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
- - Miscellaneous fixes to parens analysis - https://github.com/dotnet/fsharp/pull/16262
1
+ - Miscellaneous fixes to parens analysis - https://github.com/dotnet/fsharp/pull/16262
2
+ - Fixes #16359 - correctly handle imports with 0 length public key tokens - https://github.com/dotnet/fsharp/pull/16363
Original file line number Diff line number Diff line change @@ -1946,7 +1946,12 @@ and seekReadAssemblyManifest (ctxt: ILMetadataReader) pectxt idx =
1946
1946
Name = name
1947
1947
AuxModuleHashAlgorithm = hash
1948
1948
SecurityDeclsStored = ctxt.securityDeclsReader_ Assembly
1949
- PublicKey = pubkey
1949
+ PublicKey =
1950
+ // The runtime and C# treat a 0 length publicKey as an unsigned assembly, so if a public record exists with a length of 0
1951
+ // treat it as unsigned
1952
+ match pubkey with
1953
+ | Some pkBytes when pkBytes.Length > 0 -> pubkey
1954
+ | _ -> None
1950
1955
Version = Some( ILVersionInfo( v1, v2, v3, v4))
1951
1956
Locale = readStringHeapOption ctxt localeIdx
1952
1957
CustomAttrsStored = ctxt.customAttrsReader_ Assembly
You can’t perform that action at this time.
0 commit comments