You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/android/deployment/index.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,10 +8,9 @@ ms.date: 04/05/2023
8
8
9
9
> [!div class="op_single_selector"]
10
10
>
11
-
> -[Publish for Android](index.md)
12
-
> -[Publish for iOS](../../ios/deployment/index.md)
13
-
> -[Publish for macOS](../../mac-catalyst/deployment/index.md)
14
-
> -[Publish for Windows](../../windows/deployment/overview.md)
11
+
> -[Publish for Google Play distribution](publish-google-play.md)
12
+
> -[Publish for ad-hoc distribution](publish-ad-hoc.md)
13
+
> -[Publish using the command line](publish-cli.md)
15
14
16
15
The final step in the development of a .NET Multi-platform App UI (.NET MAUI) app is to publish it. Publishing is the process of creating a package that contains the app and is ready for users to install on their devices. Publishing involve two essential tasks:
Copy file name to clipboardExpand all lines: docs/android/deployment/publish-ad-hoc.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,11 @@ ms.date: 05/15/2023
6
6
7
7
# Publish an Android app for ad-hoc distribution
8
8
9
+
> [!div class="op_single_selector"]
10
+
>
11
+
> -[Publish for Google Play distribution](publish-google-play.md)
12
+
> -[Publish using the command line](publish-cli.md)
13
+
9
14
When distributing Android apps outside Google Play, and other marketplaces, *ad-hoc* distribution enables you to make the app available for download on a website or server. Android requires that apps created for ad-hoc distribution use the Android Package (APK) format.
10
15
11
16
To distribute a .NET Multi-platform App UI (.NET MAUI) Android app, you'll need to sign it with a key from your keystore. Keystores are binary files that serve as repositories of certificates and private keys.
Copy file name to clipboardExpand all lines: docs/android/deployment/publish-cli.md
+13-6Lines changed: 13 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,11 @@ ms.date: 05/16/2023
6
6
7
7
# Publish an Android app using the command line
8
8
9
+
> [!div class="op_single_selector"]
10
+
>
11
+
> -[Publish for Google Play distribution](publish-google-play.md)
12
+
> -[Publish for ad-hoc distribution](publish-ad-hoc.md)
13
+
9
14
To distribute a .NET Multi-platform App UI (.NET MAUI) Android app, you'll need to sign it with a key from your keystore. A *keystore* is a database of security certificates that's created by using `keytool` from the Java Development Kit (JDK). A keystore is required when publishing a .NET MAUI Android app, as Android won't run apps that haven't been signed.
10
15
11
16
## Create a keystore file
@@ -59,7 +64,7 @@ To build your app from the command line, and sign it using your keystore, open a
Both the `AndroidSigningKeyPass` and `AndroidSigningStorePass` properties support `env:` and `file:` prefixes that can be used to specify an environment variable or file that contains the password. Specifying the password in this way prevents it from appearing in build logs. For example, to use an environment variable named `AndroidSigningPassword`:
Publishing builds and signs the app, and then copies the AAB and APK files to the *bin\\Release\\net7.0-android\\publish* folder. There are two AAB files - one unsigned and another signed. The signed variant has **-signed** in the file name.
125
+
Publishing builds and signs the app, and then copies the AAB and APK files to the *bin\\Release\\net8.0-android\\publish* folder. There are two AAB files - one unsigned and another signed. The signed variant has **-signed** in the file name.
119
126
120
127
For more information about the `dotnet publish` command, see [dotnet publish](/dotnet/core/tools/dotnet-publish).
Copy file name to clipboardExpand all lines: docs/android/deployment/publish-google-play.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,6 +6,11 @@ ms.date: 05/15/2023
6
6
7
7
# Publish an Android app for Google Play distribution
8
8
9
+
> [!div class="op_single_selector"]
10
+
>
11
+
> -[Publish for ad-hoc distribution](publish-ad-hoc.md)
12
+
> -[Publish using the command line](publish-cli.md)
13
+
9
14
The most common approach to distributing Android apps to users is through the Google Play. The first time an app is submitted to Google Play it must be submitted through the Google Play Console. Subsequent versions of the app can be submitted through Visual Studio. In both cases, a Google Play Developer account is required. Apps submitted to Google Play require approval from Google.
10
15
11
16
To distribute a .NET Multi-platform App UI (.NET MAUI) Android app, you'll need to sign it with a key from your keystore, prior to upload to Google Play. Keystores are binary files that serve as repositories of certificates and private keys.
Copy file name to clipboardExpand all lines: docs/android/linking.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,8 @@ Linker behavior can be configured for each build configuration of your app. By d
30
30
# [Visual Studio for Mac](#tab/vsmac)
31
31
<!-- markdownlint-enable MD025 -->
32
32
33
+
[!INCLUDE [Visual Studio for Mac end of life](~/includes/vsmac-eol.md)]
34
+
33
35
1. In the **Solution Window**, right-click on your .NET MAUI app project and select **Properties**.
34
36
1. In the **Project Properties** window, select the **Build > Android > Linker** tab.
35
37
1. In the **Project Properties** window, ensure the **Configuration** drop-down is set to **Release** and set the **Linker Behavior** drop-down to your desired linker behavior:
Copy file name to clipboardExpand all lines: docs/android/manifest.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ ms.date: 03/07/2023
8
8
9
9
Every .NET Multi-platform App UI (.NET MAUI) app on Android has an *AndroidManifest.xml* file, located in the *Platforms\\Android* folder, that describes essential information about your app to build tools, the Android operating system, and Google Play.
10
10
11
-
The manifest file for your .NET MAUI Android app is generated as part of the .NET MAUI build process on Android. This build process takes the XML in the *Platforms\\Android\\AndroidManifest.xml* file, and merges it with any XML that's generated from specific attributes on your classes. The resulting manifest file can be found in the *obj* folder. For example, it can be found at *obj\\Debug\\net7.0-android\\AndroidManifest.xml* for debug builds on .NET 7.
11
+
The manifest file for your .NET MAUI Android app is generated as part of the .NET MAUI build process on Android. This build process takes the XML in the *Platforms\\Android\\AndroidManifest.xml* file, and merges it with any XML that's generated from specific attributes on your classes. The resulting manifest file can be found in the *obj* folder. For example, it can be found at *obj\\Debug\\net8.0-android\\AndroidManifest.xml* for debug builds on .NET 8.
12
12
13
13
<!-- TODO: Uncomment when VS 17.6 P2 is released
14
14
> [!NOTE]
@@ -181,7 +181,7 @@ public class MainApplication : MauiApplication
181
181
182
182
```
183
183
184
-
This declaration causes the following XML fragment to be generated in *obj\\Debug\\net7.0-android\\AndroidManifest.xml*:
184
+
This declaration causes the following XML fragment to be generated in *obj\\Debug\\net8.0-android\\AndroidManifest.xml*:
Copy file name to clipboardExpand all lines: docs/deployment/visual-studio-properties.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ The **Application** section describes some settings related to which platforms y
28
28
| Setting | Default value | Description |
29
29
| - | - | - |
30
30
| Target the iOS platform | Checked | Specifies that this project will target the iOS platform. |
31
-
| Target iOS Framework | `net7.0-ios` | The [Target Framework Moniker][tfm] used to target iOS.
31
+
| Target iOS Framework | `net8.0-ios` | The [Target Framework Moniker][tfm] used to target iOS.
32
32
| Minimum Target iOS Framework | `14.2` | The minimum version of iOS your app targets.
33
33
34
34
-**Android Targets**
@@ -38,7 +38,7 @@ The **Application** section describes some settings related to which platforms y
38
38
| Setting | Default value | Description |
39
39
| - | - | - |
40
40
| Target the Android platform | Checked | When checked, the .NET MAUI project will target and build an Android version of your app. Uncheck to disable the Android target. |
41
-
| Target Android Framework | `net7.0-android` | The [Target Framework Moniker][tfm] used to target Android.
41
+
| Target Android Framework | `net8.0-android` | The [Target Framework Moniker][tfm] used to target Android.
42
42
| Minimum Target Android Framework | `21.0` | The minimum version of Android your app targets.
43
43
44
44
-**Windows Targets**
@@ -48,7 +48,7 @@ The **Application** section describes some settings related to which platforms y
48
48
| Setting | Default value | Description |
49
49
| - | - | - |
50
50
| Target the Windows platform | Checked | When checked, the .NET MAUI project will target and build a Windows version of your app. Uncheck to disable the Windows target. |
51
-
| Target Windows Framework | `net7.0-windows10.0.19041.0` | The [Target Framework Moniker][tfm] used to target Windows.
51
+
| Target Windows Framework | `net8.0-windows10.0.19041.0` | The [Target Framework Moniker][tfm] used to target Windows.
52
52
| Minimum Target Windows Framework | `10.0.17763.0` | The minimum version of Windows your app targets.
0 commit comments