I'm referencing a VS 2017 (4.6.01586) .NET Standard 1.4 project from a Xamarin.iOS project. I'm receiving the following error:
Error The "ConvertPdbToMdb" task failed unexpectedly.
Pdb2Mdb.PortablePdbNotSupportedException: Portable PDB '***.pdb' can't be converted to mdb. Consider setting the project 'DebugType' property to 'Full'.
at Pdb2Mdb.Converter.Convert(String filename) in C:\d\lanes\4368\73f58d6d\source\xamarinvs\src\MSBuild\Xamarin.iOS.Tasks\Pdb2mdb\Driver.cs:line 43
at Xamarin.iOS.Tasks.ConvertPdbToMdb.Execute() in C:\d\lanes\4368\73f58d6d\source\xamarinvs\src\MSBuild\Xamarin.iOS.Tasks\Tasks\ConvertPdbToMdb.cs:line 26
at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext() Codon.Ios
The project compiles, but the errors sit there in the Visual Studio Error List.
*** Bug 53476 has been marked as a duplicate of this bug. ***
I've the exact same Problem (using VS2017 Pro Final; using Xamarin.Forms 180 || 193)
Steps to reproduce:
- Create new Xamarin.Forms Project
- Create a new .Net Standard library (.Net Standard 1.0 - 1.6)
- reference library within the iOS Project
=> Compile Fails with: Error The "ConvertPdbToMdb" task failed unexpectedly.
I made some more Tests and found a Workaround!:
1. Open Project properties of the .Net Standard library.
2. On the "Build" Tab, scroll down and press "Advanced"
3. Set "Debugging Information" to "full"
Solution will compile and run!
Yes, PPDB support is not there yet. We're targeting VS2017 15.2 for this work, which should be quite soon!
BTW, the workaround of specifying full for the debug symbols is indeed the supported one.
This has been merged into the release branch for 15.2 and is on track for shipping soon.
Notice (2018-05-21): bugzilla.xamarin.com will be
switching to read-only mode on Thursday, 2018-05-25 22:00 UTC.
Please join us on
Visual Studio Developer Community and
GitHub to continue tracking
issues. Bugzilla will remain available for reference in read-only mode.
We will continue to work on open Bugzilla bugs and copy them to the new
locations as needed for follow-up. The See Also field
on each Bugzilla bug will be updated with a link to its new location
After Bugzilla is read-only, if you have new information to add for a
bug that does not yet have a matching issue on Developer Community or
GitHub, you can create a follow-up issue in the new location. Copy and
paste the title and description from this bug, and then add your new
details. You can get a pre-formatted version of the title and
In special cases you might also want the comments:
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.