I followed this guide "https://damienaicheh.github.io/azure/xamarin/xamarin.forms/2019/07/01/sign-in-with-microsoft-account-with-xamarin-en.html" for setting up authentication for Xamarin android and ios msal. Everything seemed to going fine until I ran it and got an Invalid keystore format error. I ran this "keytool -genkeypair -v -keystore debug.keystore -alias androiddebugkey -keyalg RSA -keysize 2048 -validity 10000 -storepass android -keypass android -dname "CN=Android Debug,O=Android,C=US"" to create the keystore and put it in the same directory as the .csproj in the .Droid project. Then I included these lines in the .csproj file.
<PropertyGroup>
<AndroidKeyStore>debug.keystore</AndroidKeyStore>
<AndroidSigningKeyStore>debug.keystore</AndroidSigningKeyStore>
<!-- Other properties related to signing -->
</PropertyGroup>
When I create a Xamarin solution, the eumulator runs for android, but when I update the configuration and code, I get the keystore error. I've even downloaded the project from above from the github page "https://github.com/damienaicheh/MicrosoftAuthenticationProject", replace the clientId with mine, and still get the same error.
Any Ideas?