Skip to content

Compiler does not support Windows PDBs on ARM #59421

@tmat

Description

@tmat

The compiler does not ship with ARM versions of Microsoft.DiaSymReader.Native and thus does not support Windows PDBs on ARM.

Either

  1. include ARM binaries to support .NET Framework targeting projects and update SymUnmanagedWriterFactory.CreateWriter to load them.
  2. Report better error in SymUnmanagedWriterFactory.CreateWriter when running on ARM. Current error:
    error CS0041: Unexpected error writing debug information -- 'An attempt was made to load a program with an incorrect format. (0x8007000B)'
    See pdbonly fails on Arm64 sdk#23838.

I think we need [1] so that we can build legacy projects targeting .NET Framework ARM64.

In addition, we should consider reporting warning from our msbuild targets when DebugType is set to Full or PdbOnly in .NET 7+ project. The warning would recommend using Portable PDBs.

Once we implement and run all tests we should also mark DSRN package "release".

Tasks list

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions