Could not find file "obj\Debug\100\android\assets\Xamarin.Auth.dll.mdb"

Nilo 106 Reputation points
2021-03-14T07:37:24.043+00:00

I have developed a xamarin app and I got this error "Could not find file obj\Debug\100\android\assets\Xamarin.Auth.dll.mdb" while debugging Visual studio 2019. It occured after VS update 16.9.1. This occur only mode debug, in mode release is ready.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,294 questions
{count} vote

Accepted answer
  1. Nilo 106 Reputation points
    2021-03-16T04:28:24.103+00:00

    Thank you for you answered, I try your suggest but I had the same problem, read some section and add the following to my application, csproj after the tag </Project> :

    <Target Name="_RemoveMdbFiles" BeforeTargets="_Upload">
    <ItemGroup>
    <_Temp Include="%(_ResolvedSymbols.Identity)" Condition="'%(_ResolvedSymbols.Extension)' == '.mdb'" />
    <_ResolvedSymbols Remove="@(_Temp)"/>
    </ItemGroup>
    </Target>

    This now worked for me. Thank you very much.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful