3

I am trying to set the path to my KeyStore file in the Android section of the project properties for my .Net Maui project. I click on the browse button, select the KeyStore file, and when the settings page re-appears, the box for the location of the KeyStore is still empty. I cannot figure out why VS 2022 keeps doing this. Any ideas?

Below is the screen shot from the settings page:

enter image description here

I click the Browse button to the right of the Key Store text box however the text box never has a value after I select the Keystone File.

I can turn the auto .APK signature off and manually select the same keystore file during an Adhoc deployment and it works fine.

2
  • May I know what's the version of your Visual Studio? Commented Feb 27, 2024 at 6:52
  • Same issue here with VS 2022 17.13.5 Commented Apr 9 at 13:11

1 Answer 1

2

Actually, I can't reproduce the issue that the package Signing keystore value not be saved when opening the setting page again.

However, you can also manually add the KeyStore file in your csproj file like:

<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Release|net8.0-android|AnyCPU'">
          <AndroidSigningKeyStore>C:\Users\...\YourProjectName\YourProjectName.keystore
         </AndroidSigningKeyStore>
           
</PropertyGroup>

For more details, you can refer to Define build properties in your project file.

Additionally, it's suggested to report Visual Studio tooling issues is via Visual Studio's "Report a Problem" menu and then follow them on the developer community site. Please see How to report a problem with Visual Studio - Visual Studio | Microsoft Learn. I found a similar thread:Maui add keystore not saving filepath that you can refer to.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.