Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 1.58 KB

linking.md

File metadata and controls

36 lines (24 loc) · 1.58 KB
title description ms.date no-loc
Linking a .NET MAUI iOS app
Learn about the .NET for iOS linker, which is used to eliminate unused code from a .NET MAUI iOS app in order to reduce its size.
04/11/2023
ILLink

Linking a .NET MAUI iOS app

[!INCLUDE Linker introduction and behavior]

  1. In Solution Explorer right-click on your .NET MAUI app project and select Properties. Then, navigate to the iOS > Build tab and set the Linker behavior drop-down to your desired linker behavior:

    :::image type="content" source="media/linking/vs.png" alt-text="Screenshot of the linker behavior for iOS in Visual Studio.":::

[!INCLUDE Visual Studio for Mac end of life]

  1. In the Solution Window, right-click on your .NET MAUI app project and select Properties.

  2. In the Project Properties window, select the Build > iOS > Build tab.

  3. In the Project Properties window, ensure the Configuration drop-down is set to Release and set the Linker behavior drop-down to your desired linker behavior:

    :::image type="content" source="media/linking/vsmac.png" alt-text="Screenshot of the linker behavior for iOS in Visual Studio for Mac.":::

  4. In the Project Properties window, click the OK button.


[!INCLUDE Control the linker]