Skip to content

Commit

Permalink
Added: Info on fixing ILLink under .NET 8 SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
Sewer56 authored Jan 12, 2024
1 parent 96cfa3a commit 069bb53
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/ModTemplate.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ You can read more about R2R in the following web resources:

Incorrect use of trimming *can* and *will* break your mods. When using trimming you should test your mods thoroughly.

!!! warning

You may need to add [Microsoft.NET.ILLink.Tasks](https://www.nuget.org/packages/Microsoft.NET.ILLink.Tasks) for this to work when running .NET SDK 8 or newer.

*Assembly trimming* allows you to remove unused code from your mods (and their dependencies), often significantly shrinking the size of the generated DLLs. This in turn improves load times, download size and runtime memory use. At the time of writing, the Reloaded Loader itself and most official & creator made mods use trimming.

### Testing Trimming
Expand Down Expand Up @@ -305,4 +309,4 @@ public override void Migrate(string oldDirectory, string newDirectory)
}
```

This process can also be used to handle migration for other config modifications such as when `TryRunCustomConfiguration() == true`.
This process can also be used to handle migration for other config modifications such as when `TryRunCustomConfiguration() == true`.

0 comments on commit 069bb53

Please sign in to comment.