Skip to content

Commit 9014625

Browse files
authored
Fix IL trim warnings: add IL2026 to Rulesets.Osu, IL2072 to osu.Game
1 parent fe10fdf commit 9014625

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

osu.Game.Rulesets.Osu/osu.Game.Rulesets.Osu.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
<OutputType>Library</OutputType>
55
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
66
<Description>click the circles. to the beat.</Description>
7+
<!-- CreateSettingsControls uses reflection; suppress trim analysis warnings to keep the build output clean. -->
8+
<NoWarn>$(NoWarn);IL2026</NoWarn>
79
</PropertyGroup>
810

911
<PropertyGroup Label="Nuget">

osu.Game/osu.Game.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<!-- The codebase uses extensive reflection (Newtonsoft.Json, Realm, AutoMapper, Activator.CreateInstance)
77
that cannot be statically analysed by the ILLink trim analyser. Suppress trim analysis warnings
88
here to keep the build output clean; iOS already suppresses these in osu.iOS.props. -->
9-
<NoWarn>$(NoWarn);IL2026;IL2067;IL3000</NoWarn>
9+
<NoWarn>$(NoWarn);IL2026;IL2067;IL2072;IL3000</NoWarn>
1010
</PropertyGroup>
1111
<PropertyGroup Label="Nuget">
1212
<Title>osu!</Title>

0 commit comments

Comments
 (0)