maui
maui copied to clipboard
error XA4310: not found '$(AndroidSi gningKeyStore)' file 'myapp.keystore'
Description
my maui app is .net7.0 Development environment win10,version 19044.2604
My goal is to package an Android app. At present, I have made an error. https://learn.microsoft.com/zh-cn/dotnet/maui/android/deployment/publish-cli?view=net-maui-7.0
this is my erorr msg:
C:\Program Files\dotnet\packs\Microsoft.Android.Sdk.Windows\33.0.26\tools\Xamarin.Android.Common.targets(2323,2): error XA4310: not found '$(AndroidSi
gningKeyStore)' file'myapp.keystore'。 [E:\Project\MauiBlazorDemo\MauiBlazorDemoApp\MauiBlazorDemoApp.csproj::TargetFramework=net7.0-android]
Steps to Reproduce
- i close AOT(because other error)
keytool -genkey -v -keystore myapp.keystore -alias key -keyalg RSA -keysize 2048 -validity 10000
- shell command
dotnet publish -f:net7.0-android -c:Release /p:AndroidSigningKeyPass=123456 /p:AndroidSigningStorePass=123456
Link to public reproduction project repository
https://github.com/simphonydeveloper/MAUIBlazorDemo.git
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android
Affected platform versions
Android
Did you find any workaround?
no
Relevant log output
i output a 'msbuild.binlog' .
But the file content is garbled
VS bug #1754811
Thanks for the issue report @simphonydeveloper! This issue appears to be a problem with Visual Studio, so we ask that you use the VS feedback tool to report the issue. That way it will get to the routed to the team that owns this experience in VS.
If you encounter a problem with Visual Studio, we want to know about it so that we can diagnose and fix it. By using the Report a Problem tool, you can collect detailed information about the problem, and send it to Microsoft with just a few button clicks.
- Go to the Visual Studio for Windows feedback tool or Visual Studio for Mac feedback tool to report the issue
- Close this bug, and consider adding a link to the VS Feedback issue so that others can follow its activity there.
Well, I solved this problem, because I used the myapp.keystore file generated by the Powershell tool of vs, but the default path of Powershell is the upper level of the project, so when I execute the package command for the project
@jonathanpeppers - should this move to xamarin-android?
@simphonydeveloper did you get it working? Can we close? https://github.com/dotnet/maui/issues/13576#issuecomment-1447329247
Looking at the commands above you are probably just missing something, I don’t think there is a bug here.
Hi @simphonydeveloper. We have added the "s/needs-info" label to this issue, which indicates that we have an open question for you before we can take further action. This issue will be closed automatically in 7 days if we do not hear back from you by then - please feel free to re-open it if you come back to this issue after that time.
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate.
Closing this issue as the problem was an incorrect file locaiton as per https://github.com/dotnet/maui/issues/13576#issuecomment-1447329247