Hi,
I'm referencing a VS 2017 .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 'My.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.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.d__26.MoveNext() Codon.Ios
There's a similar issue reported here:
https://forums.xamarin.com/discussion/89921/the-convertpdbtomdb-task-failed-unexpectedly?
Any assistance would be greatly appreciated.
Regards,
Daniel
Adding the following to the netstandard library .csproj works around the problem:
<PropertyGroup> <DebugType>full</DebugType> </PropertyGroup>
Answers
I just filed a bug report for this.
@DanielVaughan,
It seems that the newer PDB format used by netstandard libraries is not supported yet in the toolchain. For clarity, I have filed a bug to track this here: https://bugzilla.xamarin.com/show_bug.cgi?id=53476
Adding the following to the netstandard library .csproj works around the problem: