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
|[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
-
67
33
## Publishing basics
68
34
69
35
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.
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