This is Xamarin's bug tracking system. For product support, please use the support links listed in your Xamarin Account.
Bug 51175 - Fallback to portable pdb with roslyn doesn't work if csproj is missing <DebugType>
Summary: Fallback to portable pdb with roslyn doesn't work if csproj is missing <Debug...
Alias: None
Product: Tools
Classification: Mono
Component: xbuild (show other bugs)
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Marek Safar
Depends on:
Reported: 2017-01-02 16:53 UTC by Alexander Köplinger [MSFT]
Modified: 2017-01-03 10:07 UTC (History)
1 user (show)

See Also:
Is this bug a regression?: ---
Last known good build:

Repro solution (4.47 KB, application/zip)
2017-01-02 17:05 UTC, Alexander Köplinger [MSFT]

Description Alexander Köplinger [MSFT] 2017-01-02 16:53:26 UTC
See attached csproj, it was created by these steps:

1. Create new Console app in XS
2. Open generated csproj and remove <DebugType>full</DebugType>
3. Compile with xbuild

It fails with "CSC: error CS0041: Unexpected error writing debug information -- 'Windows PDB writer is not available -- could not find Microsoft.DiaSymReader.Native.amd64.dll'".

The fallback we have for turning DebugType=full into portable doesn't seem to work if DebugType element is missing in csproj
Comment 1 Alexander Köplinger [MSFT] 2017-01-02 17:05:37 UTC
Created attachment 19051 [details]
Repro solution
Comment 2 Marek Safar 2017-01-03 10:07:19 UTC
Fixed in master

Note You need to log in before you can comment on or make changes to this bug.