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/core/deploying/index.md
+10-10Lines changed: 10 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -120,13 +120,13 @@ Your app is configured to target a specific version of .NET. That targeted .NET
120
120
121
121
Publishing a framework-dependent deployment creates an app that automatically rolls-forward to the latest .NET security patch available on the environment that runs the app. For more information on version binding at compile time, see [Select the .NET version to use](../versions/selection.md#framework-dependent-apps-roll-forward).
122
122
123
-
### Advantages
123
+
**Advantages**
124
124
125
125
-**Small deployment**: Only the app and its dependencies are distributed. The environment where the app is run must already have the .NET runtime installed.
126
126
-**Cross-platform**: The app and any .NET-based library runs on other operating systems.
127
127
-**Uses the latest patched runtime**: The app uses the latest runtime installed in the environment.
128
128
129
-
### Disadvantages
129
+
**Disadvantages**
130
130
131
131
-**Requires pre-installing the runtime**: The app can run only if the version of .NET it targets is already installed in the environment.
132
132
-**.NET might change**: The environment where the app is run might use a newer .NET runtime, which could change app behavior.
@@ -206,12 +206,12 @@ When you publish a self-contained deployment (SCD), the publishing process creat
206
206
207
207
Publishing an SCD creates an app that doesn't roll forward to the latest available .NET security patch. For more information on version binding at compile time, see [Select the .NET version to use](../versions/selection.md#self-contained-deployments-include-the-selected-runtime).
208
208
209
-
### Advantages
209
+
**Advantages**
210
210
211
211
-**Control .NET version**: Control which version of .NET is deployed with the app.
212
212
-**Platform-specific targeting**: Because the app must be published for each platform, it's clear where the app runs.
213
213
214
-
### Disadvantages
214
+
**Disadvantages**
215
215
216
216
-**Larger deployments**: Because the app includes the .NET runtime and all dependencies, the download size and hard drive space required is greater than a **framework-dependent deployment**.
217
217
-**Harder to update the .NET version**: The .NET Runtime can only be upgraded by releasing a new version of the app.
@@ -255,13 +255,13 @@ When you publish your app as a single-file deployment, all application-dependent
255
255
256
256
Single-file apps are always OS and architecture specific. You need to publish for each configuration, such as Linux x64, Linux Arm64, Windows x64, and so forth.
257
257
258
-
### Advantages
258
+
**Advantages**
259
259
260
260
-**Simplified distribution**: Deploy and distribute your application as a single executable file.
261
261
-**Reduced file clutter**: All dependencies are bundled, eliminating the need to manage multiple files.
262
262
-**Easy deployment**: Copy a single file to deploy the application.
263
263
264
-
### Disadvantages
264
+
**Disadvantages**
265
265
266
266
-**Larger file size**: The single file includes all dependencies, making it larger than individual files.
267
267
-**Slower startup**: Files must be extracted at runtime, which can impact startup performance.
@@ -306,14 +306,14 @@ This property bundles all application-dependent files into a single binary.
306
306
307
307
Native AOT deployment compiles your app directly to native code, eliminating the need for a runtime. This publishing option uses **self-contained deployment** mode, as the compiled native code must include everything needed to run the application. This results in faster startup times and reduced memory usage, but comes with some limitations on supported features.
308
308
309
-
### Advantages
309
+
**Advantages**
310
310
311
311
-**Fast startup**: No JIT compilation needed at runtime, leading to faster application startup.
312
312
-**Reduced memory usage**: Lower memory footprint compared to traditional .NET applications.
313
313
-**No runtime dependency**: The application runs without requiring .NET runtime installation.
314
314
-**Smaller deployment size**: Often smaller than **self-contained deployment** with the full runtime.
315
315
316
-
### Disadvantages
316
+
**Disadvantages**
317
317
318
318
-**Limited framework support**: Not all .NET features and libraries are compatible with Native AOT.
319
319
-**Longer build times**: Compilation to native code takes significantly longer than regular builds.
@@ -370,14 +370,14 @@ When you publish your app with ReadyToRun compilation, your application assembli
370
370
371
371
ReadyToRun binaries contain both intermediate language (IL) code and the native version of the same code. While R2R binaries are larger than regular assemblies, they provide better startup performance.
372
372
373
-
### Advantages
373
+
**Advantages**
374
374
375
375
- **Improved startup time**: The app spends less time running the JIT compiler during startup.
376
376
- **Better first-use performance**: Reduced latency for first-time execution of code paths.
377
377
- **Compatible with existing code**: Works with most .NET libraries and frameworks without modification.
378
378
- **Flexible deployment**: Can be combined with both **framework-dependent deployment** and **self-contained deployment** modes.
379
379
380
-
### Disadvantages
380
+
**Disadvantages**
381
381
382
382
- **Larger size**: The app is larger on disk due to including both IL and native code.
383
383
- **Longer build times**: Compilation takes more time than standard publishing.
0 commit comments