title | description | ms.date | no-loc | |
---|---|---|---|---|
Linking a .NET MAUI Mac Catalyst app |
Learn about the .NET for Mac Catalyst linker, which is used to eliminate unused code from a .NET MAUI Mac Catalyst app in order to reduce its size. |
04/11/2023 |
|
[!INCLUDE Linker introduction and behavior]
[!INCLUDE Visual Studio for Mac end of life]
To configure linker behavior in Visual Studio for Mac:
-
In the Solution Window, right-click on your .NET MAUI app project and select Properties.
-
In the Project Properties window, select the Build > Mac Catalyst > Build tab.
-
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 Mac Catalyst in Visual Studio for Mac.":::
-
In the Project Properties window, click the OK button.
[!INCLUDE Control the linker]