Specifying both PublishReadyToRunEmitSymbols and PublishReadyToRunUseCrossgen2 properties leads to PDB generation failures during the _CreateR2RSymbols target (composite mode only).
Repro steps:
dotnet new console
dotnet publish -r win-x64 /p:PublishReadyToRunEmitSymbols=true /p:PublishReadyToRun=true /p:PublishReadyToRunUseCrossgen2=true
Output:
error : Error generating PDB for 'obj\Debug\net5.0\win-x64\R2R\foo.dll': Index not found. (0x80131124)
error : Error: compilation failed for "obj\Debug\net5.0\win-x64\R2R\foo.dll" (0x80131124)
error : Error generating PDB for 'obj\Debug\net5.0\win-x64\R2R\Microsoft.CSharp.dll': Index not found. (0x80131124)
error : Error: compilation failed for "obj\Debug\net5.0\win-x64\R2R\Microsoft.CSharp.dll" (0x80131124)
error : Error generating PDB for 'obj\Debug\net5.0\win-x64\R2R\Microsoft.VisualBasic.Core.dll': Index not found. (0x80131124)
error : Error: compilation failed for "obj\Debug\net5.0\win-x64\R2R\Microsoft.VisualBasic.Core.dll" (0x80131124)
...
@davidwrighton @mangod9
Specifying both
PublishReadyToRunEmitSymbolsandPublishReadyToRunUseCrossgen2properties leads to PDB generation failures during the_CreateR2RSymbolstarget (composite mode only).Repro steps:
Output:
@davidwrighton @mangod9