Skip to content

Commit 6fe7a63

Browse files
committed
move table
1 parent 7ca336d commit 6fe7a63

File tree

1 file changed

+17
-34
lines changed

1 file changed

+17
-34
lines changed

docs/core/deploying/index.md

Lines changed: 17 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -30,40 +30,6 @@ This mode produces a publishing folder that includes a platform-specific executa
3030
> [!IMPORTANT]
3131
> You specify the target platform with a runtime identifier (RID). For more information about RIDs, see [.NET RID Catalog](../rid-catalog.md).
3232
33-
## Quick reference
34-
35-
The following table provides quick examples of how to publish your app.
36-
37-
::: zone pivot="cli,vscode"
38-
39-
### Commands
40-
41-
| Publish Mode | Command |
42-
|--|--|
43-
| [Framework-dependent deployment](#framework-dependent-deployment) | `dotnet publish -c Release [-r <RID>]` |
44-
| [Framework-dependent deployment (DLL)](#framework-dependent-deployment) | `dotnet publish -c Release -p:UseAppHost=false` |
45-
| [Self-contained deployment](#self-contained-deployment) | `dotnet publish -c Release [-r <RID>] --self-contained true` |
46-
| [Single-file deployment](#single-file-deployment) | `dotnet publish -c Release [-r <RID>] -p:PublishSingleFile=true` |
47-
| [Native AOT deployment](#native-aot-deployment) | `dotnet publish -c Release [-r <RID>] -p:PublishAot=true` |
48-
| [ReadyToRun deployment](#readytorun-deployment) | `dotnet publish -c Release [-r <RID>] -p:PublishReadyToRun=true` |
49-
50-
::: zone-end
51-
52-
::: zone pivot="visualstudio"
53-
54-
### Configurations
55-
56-
| Publish Mode | Visual Studio Configuration |
57-
|--|--|
58-
| [Framework-dependent deployment](#framework-dependent-deployment) | Set **Deployment Mode** to **Framework-dependent** (default) |
59-
| [Framework-dependent deployment (DLL)](#framework-dependent-deployment) | Set **Deployment Mode** to **Framework-dependent** and **Produce single file** to unchecked |
60-
| [Self-contained deployment](#self-contained-deployment) | Set **Deployment Mode** to **Self-contained** |
61-
| [Single-file deployment](#single-file-deployment) | Set **Deployment Mode** to **Self-contained** or **Framework-dependent** and **Produce single file** to checked |
62-
| [Native AOT deployment](#native-aot-deployment) | Requires `<PublishAot>true</PublishAot>` in project file and **Deployment Mode** set to **Self-contained** |
63-
| [ReadyToRun deployment](#readytorun-deployment) | Set **Deployment Mode** to **Self-contained** or **Framework-dependent** and **Enable ReadyToRun compilation** to checked |
64-
65-
::: zone-end
66-
6733
## Publishing basics
6834

6935
The [`<TargetFramework>`](../project-sdk/msbuild-props.md#targetframework) setting of the project file specifies the default target framework when you publish your app. You can change the target framework to any valid [Target Framework Moniker (TFM)](../../standard/frameworks.md). For example, if your project uses `<TargetFramework>net9.0</TargetFramework>`, a binary that targets .NET 9 is created.
@@ -129,6 +95,23 @@ dotnet publish -c Release -r <RID>
12995

13096
For a list of runtime identifiers, see [Runtime Identifier (RID) catalog](../rid-catalog.md).
13197

98+
::: zone pivot="cli,vscode"
99+
100+
## Quick reference
101+
102+
The following table provides quick examples of how to publish your app.
103+
104+
| Publish Mode | Command |
105+
|--|--|
106+
| [Framework-dependent deployment](#framework-dependent-deployment) | `dotnet publish -c Release [-r <RID>]` |
107+
| [Framework-dependent deployment (DLL)](#framework-dependent-deployment) | `dotnet publish -c Release -p:UseAppHost=false` |
108+
| [Self-contained deployment](#self-contained-deployment) | `dotnet publish -c Release [-r <RID>] --self-contained true` |
109+
| [Single-file deployment](#single-file-deployment) | `dotnet publish -c Release [-r <RID>] -p:PublishSingleFile=true` |
110+
| [Native AOT deployment](#native-aot-deployment) | `dotnet publish -c Release [-r <RID>] -p:PublishAot=true` |
111+
| [ReadyToRun deployment](#readytorun-deployment) | `dotnet publish -c Release [-r <RID>] -p:PublishReadyToRun=true` |
112+
113+
::: zone-end
114+
132115
## Framework-dependent deployment
133116

134117
Framework-dependent deployment is the default mode when you publish from either the CLI or Visual Studio. In this mode, a platform-specific executable host is created to host your cross-platform app. The host executable filename varies per platform and is named something similar to `<PROJECT-FILE>.exe`. You can run this executable directly instead of calling `dotnet <PROJECT-FILE>.dll`, which is still an acceptable way to run the app.

0 commit comments

Comments
 (0)