Skip to content

Crossgen2 does not work with PublishReadyToRunEmitSymbols #39573

@AntonLapounov

Description

@AntonLapounov

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions