"Only releases with status draft may be created on draft app"

Bradley Plett 31 Reputation points
2022-04-22T14:58:08.667+00:00

I have been successfully publishing my Maui app to the Google Play Store. However, something changed recently (I’m assuming it was moving to RC1) and now when I try to publish I get the message “Only releases with status draft may be created on draft app.”. I don’t think I’m doing anything differently – I’m still just publishing to “Internal”. Is there a new way to mark an app as “draft”?

On a related subject, I notice a significant overlap between what’s in the “AndroidManifest.xml” and the entries in the “csproj” file (e.g. “AndroidManifestApplicationPackageName” == “package”, “AndroidManifestApplicationVersionNumber” == “android:versionCode”, “AndroidManifestApplicationVersionName” == “android:versionName”). Which is the “correct” place to put these entries, or do we need to keep both up-to-date? Is there any publicly available guidance on this?

Thanks in advance!
Brad.

P.S. I am able to upload the package manually and create a new release just fine.

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,747 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 25,341 Reputation points Microsoft Vendor
    2022-04-28T04:29:23.98+00:00

    Hello,

    At this time, publishing is only supported through the .NET command line interface. You need to open a terminal and navigate to the project's folder. Run the dotnet publish command, and there are four parameters, please check https://learn.microsoft.com/en-us/dotnet/maui/android/deployment/overview#publish

    Best Regards,
    Wenyan Zhang


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments