Skip to content

pdb2pdb failing for cshtml files when targetting 6.0 #7388

@MihaZupan

Description

@MihaZupan
  • This issue is blocking
  • This issue is causing unreasonable pain

Hit in dotnet/yarp#972:
https://dev.azure.com/dnceng/public/_build/results?buildId=1136893&view=logs&j=0bc77094-9fcd-5c38-f6e4-27d2ae131589&t=e5c9247b-367b-556a-ffed-53eb5f68dbb5&l=343

When adding a 6.0 target to a project containing cshtml files, pdb2pdb is failing with the following error:

  PDB0021: Document name doesn't match any pattern in Source Link: 'd:\workspace\_work\1\s\samples\ReverseProxy.Auth.Sample\Views\Account\AccessDenied.cshtml'
  PDB0021: Document name doesn't match any pattern in Source Link: 'd:\workspace\_work\1\s\samples\ReverseProxy.Auth.Sample\Views\Account\LoggedOut.cshtml'
  PDB0021: Document name doesn't match any pattern in Source Link: 'd:\workspace\_work\1\s\samples\ReverseProxy.Auth.Sample\Views\Account\Login.cshtml'
D:\workspace\_work\1\s\.packages\microsoft.dotnet.arcade.sdk\6.0.0-beta.21263.1\tools\SymStore.targets(70,5): error MSB3073: The command ""D:\workspace\_work\1\s\.packages\microsoft.diasymreader.pdb2pdb\1.1.0-beta2-19575-01\tools\Pdb2Pdb.exe" "D:\workspace\_work\1\s\artifacts\bin\ReverseProxy.Auth.Sample\Release\net6.0\ReverseProxy.Auth.Sample.dll" /out "D:\workspace\_work\1\s\artifacts\SymStore\Release\ReverseProxy.Auth.Sample\net6.0\ReverseProxy.Auth.Sample.pdb" /srcsvrvar SRC_INDEX=public" exited with code -1. [D:\workspace\_work\1\s\samples\ReverseProxy.Auth.Sample\ReverseProxy.Auth.Sample.csproj]

Using Arcade SDK 6.0.0-beta.21263.1 and .NET SDK 6.0.100-preview.5.21263.3 (latest build from installer repo)

Is there something else we should be configuring to avoid this/is this an issue with pdb2pdb?

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions