You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using System;classProgram{staticvoidMain(string[]args){constfloatf=1.0f;doublex= f;
Console.WriteLine(x);}}
csc Program.cs /debug:portable
pdb2pdb a.exe
pdb2pdb a.exe /pdb a.pdb2 /out a.pdb3
PDB0017: token 0x06000001: Invalid local constant data
The second step produces a PDB with NIL constant token signature since there is no StandAloneSig in a.exe that matches float signature.
The third step then calls ISymUnmanagedConstant.GetSignature on such constant and reports an error.
We could infer the constant signature from the value for primitive types.
The text was updated successfully, but these errors were encountered:
Repro
Program.cs:
csc Program.cs /debug:portable
pdb2pdb a.exe
pdb2pdb a.exe /pdb a.pdb2 /out a.pdb3
The second step produces a PDB with NIL constant token signature since there is no StandAloneSig in a.exe that matches
float
signature.The third step then calls ISymUnmanagedConstant.GetSignature on such constant and reports an error.
We could infer the constant signature from the value for primitive types.
The text was updated successfully, but these errors were encountered: