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.