I now understand whats going wrong, and I suspect that something might be slightly broken in the Publish wizard. tldr is that the wizard looks for the built apk using the wrong name, and the assembly name and package name have to be the same otherwise the wizard fails to sign the apk.
First, I verified that I can publish manually (using jarsigner and zipalign) using the certificate, and this worked ok after i specified a package name in the project properties. (The project is File->New->Project->Android ICS Application with the project named 'HelloWorld' and no other changes.) Then I tried running the Publish wizard again. It still didn't work, but i noticed some errors in the VS output window. The are: Waiting for packaging to complete Packaging successfully completed Attempting to Sign package with custom key Failed to sign package jarsigner: unable to open jar file: C:\\Users\\Andy\\Documents\\Visual Studio 2010\\Projects\\HelloWorld\\HelloWorld\\bin\\Release\\HelloWorld-Signed.apk Attempting to Align package Failed to Align package jarsigner: unable to open jar file: C:\\Users\\Andy\\Documents\\Visual Studio 2010\\Projects\\HelloWorld\\HelloWorld\\bin\\Release\\HelloWorld-Signed.apk (these errors are repeated again) So jarsigner is failing because (with no package name specified, which is the default) the apk being built by VS is named HelloWorld.HelloWorld-Signed.apk, but the publish wizard ran jarsigner against HelloWorld-Signed.apk, which doesn't exist. When I specified a java-style package name (as required for publishing) the name of the apk file changed to match, but the wizard was still looking for <assemblyname>-signed.apk. When I then made the assembly name and the package name the same, the wizard successfully signed the apk. As I don't come from a java background I didn't understand the significance of the package name in the project properties and left it unspecified, which is the default. Is this a bug? If no, should I log it? Andy -- View this message in context: http://mono-for-android.1047100.n5.nabble.com/Publishing-problem-tp5712605p5712618.html Sent from the Mono for Android mailing list archive at Nabble.com. _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid