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 ()
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)

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]

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

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