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
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.
123
+
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.
124
124
125
125
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/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.
1. Install the Android SDK. You can acquire the correct versions of the Android SDK and build tools by creating a new .NET MAUI project (`dotnet new maui`) and running the following command in your terminal:
1. Install the Android SDK. You can acquire the correct versions of the Android SDK and build tools by creating a new .NET MAUI project (`dotnet new maui`) and running the following command in your terminal:
On macOS, the suggested Android SDK directory value is `$HOME/Library/Android/sdk`.
146
146
147
147
### Linux
@@ -210,7 +210,7 @@ This is a known issue if you install to `%APPDATA%` on Windows and will be fixed
210
210
### Debugging issues
211
211
212
212
* Debugging can fail to start for multiple reasons. If there isn't a clear error in the Output window, first double check that you are using the ".NET MAUI" run configuration in Visual Studio Code.
213
-
* You can try a command line build from the terminal to see if the error is with your code or the .NET MAUI extension. For example, you could run `dotnet build -f:net7.0-android` to see if your Android build succeeds outside of Visual Studio Code. If this build succeeds, please [Report an Issue](https://github.com/microsoft/vscode-dotnettools/issues)
213
+
* You can try a command line build from the terminal to see if the error is with your code or the .NET MAUI extension. For example, you could run `dotnet build -f:net8.0-android` to see if your Android build succeeds outside of Visual Studio Code. If this build succeeds, please [Report an Issue](https://github.com/microsoft/vscode-dotnettools/issues)
Copy file name to clipboardExpand all lines: docs/ios/cli.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ In this tutorial, you'll learn how to create and run a .NET Multi-platform App U
16
16
17
17
```zsh
18
18
cd MyMauiApp
19
-
dotnet build -t:Run -f net7.0-ios
19
+
dotnet build -t:Run -f net8.0-ios
20
20
```
21
21
22
22
The `dotnet build`command will restore the project the dependencies, build the app, and launch it in the default simulator.
@@ -49,13 +49,13 @@ A .NET MAUI iOS app can be launched on a specific iOS simulator from a Mac by pr
49
49
3. In **Terminal**, build the app and run it on your chosen simulator by specifying the `_DeviceName` MSBuild property using the `-p` [MSBuild option](/dotnet/core/tools/dotnet-build#msbuild):
4. In your chosen simulator, press the **Click me** button several times and observe that the count of the number of button clicks is incremented.
@@ -81,7 +81,7 @@ A device must be provisioned before you can deploy an iOS app to it. For more in
81
81
5. In **Terminal**, build the app and run it on your chosen simulator by specifying the `_DeviceName` MSBuild property using the `-p` [MSBuild option](/dotnet/core/tools/dotnet-build#msbuild):
|`-f` or `--framework`| The target framework, which is `net7.0-ios`. |
19
+
|`-f` or `--framework`| The target framework, which is `net8.0-ios`. |
20
20
|`-c` or `--configuration`| The build configuration, which is `Release`. |
21
21
22
22
> [!WARNING]
@@ -44,10 +44,10 @@ For a full list of build properties, see [Project file properties](https://githu
44
44
For example, use the following command to build and sign an *.ipa* on a Mac:
45
45
46
46
```dotnetcli
47
-
dotnet publish -f net7.0-ios -c Release -p:ArchiveOnBuild=true -p:RuntimeIdentifier=ios-arm64 -p:CodesignKey="Apple Distribution: John Smith (AY2GDE9QM7)" -p:CodesignProvision="MyMauiApp"
47
+
dotnet publish -f net8.0-ios -c Release -p:ArchiveOnBuild=true -p:RuntimeIdentifier=ios-arm64 -p:CodesignKey="Apple Distribution: John Smith (AY2GDE9QM7)" -p:CodesignProvision="MyMauiApp"
48
48
```
49
49
50
-
Publishing builds and signs the app, and then copies the *.ipa* to the *bin/Release/net7.0-ios/ios-arm64/publish/* folder. The distribution channel for the app is specified in the distribution certificate contained within the provisioning profile. For information about creating provisioning profiles for the different distribution channels, see [Publish an iOS app for App Store distribution](publish-app-store.md), [Publish an iOS app for ad-hoc distribution](publish-ad-hoc.md), and [Publish an iOS app for in-house distribution](publish-in-house.md).
50
+
Publishing builds and signs the app, and then copies the *.ipa* to the *bin/Release/net8.0-ios/ios-arm64/publish/* folder. The distribution channel for the app is specified in the distribution certificate contained within the provisioning profile. For information about creating provisioning profiles for the different distribution channels, see [Publish an iOS app for App Store distribution](publish-app-store.md), [Publish an iOS app for ad-hoc distribution](publish-ad-hoc.md), and [Publish an iOS app for in-house distribution](publish-in-house.md).
51
51
52
52
For more information about the `dotnet publish` command, see [dotnet publish](/dotnet/core/tools/dotnet-publish).
53
53
@@ -60,29 +60,29 @@ If the `RuntimeIdentifier` parameter isn't specified on the command line, or in
60
60
One solution to these issues is to add the following `<PropertyGroup>` to your project file:
61
61
62
62
```xml
63
-
<PropertyGroupCondition="'$(IsPublishing)' == 'true' And '$(TargetFramework)' == 'net7.0-ios'">
63
+
<PropertyGroupCondition="'$(IsPublishing)' == 'true' And '$(TargetFramework)' == 'net8.0-ios'">
64
64
<RuntimeIdentifier>ios-arm64</RuntimeIdentifier>
65
65
</PropertyGroup>
66
66
```
67
67
68
68
Then, use the following command to publish your app:
An alternative solution to these issues is to add the following `<PropertyGroup>` to your project file:
75
75
76
76
```xml
77
-
<PropertyGroupCondition="'$(Configuration)' == 'Release' And '$(TargetFramework)' == 'net7.0-ios'">
77
+
<PropertyGroupCondition="'$(Configuration)' == 'Release' And '$(TargetFramework)' == 'net8.0-ios'">
78
78
<RuntimeIdentifier>ios-arm64</RuntimeIdentifier>
79
79
</PropertyGroup>
80
80
```
81
81
82
82
Then, use the following command to publish your app:
83
83
84
84
```dotnetcli
85
-
dotnet publish -f net7.0-ios -c Release ...
85
+
dotnet publish -f net8.0-ios -c Release ...
86
86
```
87
87
88
88
## Define build properties in your project file
@@ -147,13 +147,13 @@ To publish your app from the command line on Windows, open a terminal and naviga
147
147
For example, use the following command to build and sign an *.ipa* from Windows:
148
148
149
149
```dotnetcli
150
-
dotnet publish -f net7.0-ios -c Release -p:ArchiveOnBuild=true -p:RuntimeIdentifier=ios-arm64 -p:CodesignKey="Apple Distribution: John Smith (AY2GDE9QM7)" -p:CodesignProvision="MyMauiApp" -p:ServerAddress={macOS build host IP address} -p:ServerUser={macOS username} -p:ServerPassword={macOS password} -p:TcpPort=58181 -p:_DotNetRootRemoteDirectory=/Users/{macOS username}/Library/Caches/Xamarin/XMA/SDKs/dotnet/
150
+
dotnet publish -f net8.0-ios -c Release -p:ArchiveOnBuild=true -p:RuntimeIdentifier=ios-arm64 -p:CodesignKey="Apple Distribution: John Smith (AY2GDE9QM7)" -p:CodesignProvision="MyMauiApp" -p:ServerAddress={macOS build host IP address} -p:ServerUser={macOS username} -p:ServerPassword={macOS password} -p:TcpPort=58181 -p:_DotNetRootRemoteDirectory=/Users/{macOS username}/Library/Caches/Xamarin/XMA/SDKs/dotnet/
151
151
```
152
152
153
153
> [!NOTE]
154
154
> If the `ServerPassword` parameter is omitted from a command line build invocation, Pair to Mac attempts to log in to the Mac build host using its saved SSH keys.
155
155
156
-
Publishing builds and signs the app, and then copies the *.ipa* to the *bin\\Release\\net7.0-ios\\ios-arm64\\publish* folder on your Windows machine. The distribution channel for the app is specified in the distribution certificate contained within the provisioning profile. For information about creating distribution provisioning profiles for the different distribution channels, see [Publish an iOS app for App Store distribution](publish-app-store.md), [Publish an iOS app for ad-hoc distribution](publish-ad-hoc.md), and [Publish an iOS app for in-house distribution](publish-in-house.md)
156
+
Publishing builds and signs the app, and then copies the *.ipa* to the *bin\\Release\\net8.0-ios\\ios-arm64\\publish* folder on your Windows machine. The distribution channel for the app is specified in the distribution certificate contained within the provisioning profile. For information about creating distribution provisioning profiles for the different distribution channels, see [Publish an iOS app for App Store distribution](publish-app-store.md), [Publish an iOS app for ad-hoc distribution](publish-ad-hoc.md), and [Publish an iOS app for in-house distribution](publish-in-house.md)
157
157
158
158
During the publishing process it maybe necessary to allow `codesign` to run on your paired Mac:
Copy file name to clipboardExpand all lines: docs/ios/pair-to-mac.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -154,7 +154,7 @@ If you encounter any trouble using automatic Mac provisioning, take a look at th
154
154
Pair to Mac supports building .NET MAUI apps from the command line. Navigate to the folder that holds the source of your .NET MAUI iOS app and execute the following command:
0 commit comments