Skip to content

Commit e217ae2

Browse files
authored
Improvements to the Linker article (#35856)
1 parent 7a3917a commit e217ae2

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

aspnetcore/blazor/host-and-deploy/configure-linker.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ description: Learn how to control the Intermediate Language (IL) Linker when bui
55
monikerRange: '= aspnetcore-3.1'
66
ms.author: wpickett
77
ms.custom: mvc
8-
ms.date: 11/12/2024
8+
ms.date: 07/29/2025
99
uid: blazor/host-and-deploy/configure-linker
1010
---
1111
# Configure the Linker for ASP.NET Core Blazor
1212

13-
This article explains how to control the Intermediate Language (IL) Linker when building a Blazor app.
13+
This article explains how to control the Intermediate Language (IL) Linker for client-side scenarios when building a Blazor app.
1414

1515
Blazor WebAssembly performs [Intermediate Language (IL)](/dotnet/standard/glossary#il) linking during a build to trim unnecessary IL from the app's output assemblies. The linker is disabled when building in Debug configuration. Apps must build in Release configuration to enable the linker. We recommend building in Release when deploying your Blazor WebAssembly apps.
1616

@@ -25,7 +25,7 @@ Linking for Blazor apps can be configured using these MSBuild features:
2525

2626
## Control linking with an MSBuild property
2727

28-
Linking is enabled when an app is built in `Release` configuration. To change this, configure the `BlazorWebAssemblyEnableLinking` MSBuild property in the project file:
28+
By default, linking is enabled when an app is built in `Release` configuration. To disable linking, configure the `BlazorWebAssemblyEnableLinking` MSBuild property in the project file:
2929

3030
```xml
3131
<PropertyGroup>
@@ -119,4 +119,6 @@ For more information, see [I18N: Pnetlib Internationalization Framework Library
119119

120120
## Additional resources
121121

122-
<xref:blazor/performance/app-download-size#intermediate-language-il-linking>
122+
* <xref:blazor/performance/app-download-size#intermediate-language-il-linking>
123+
* [IL trimmer concepts and related tools (`dotnet/runtime` GitHub repository)](https://github.com/dotnet/runtime/tree/main/docs/tools/illink)
124+
* [Trim self-contained deployments and executables (server-side Blazor apps only](/dotnet/core/deploying/trimming/trim-self-contained)

0 commit comments

Comments
 (0)