|
11 | 11 | <RunScriptCommand Condition="'$(TargetOS)' == 'windows'">$(AssemblyName).exe</RunScriptCommand> |
12 | 12 | <RunScriptCommand Condition="'$(TargetOS)' != 'windows'">chmod +rwx $(AssemblyName) && ./$(AssemblyName)</RunScriptCommand> |
13 | 13 | </PropertyGroup> |
14 | | - |
| 14 | + |
15 | 15 | <PropertyGroup Condition="'$(TestNativeAot)' != 'true'"> |
16 | 16 | <PublishSingleFile>true</PublishSingleFile> |
17 | 17 | <UseAppHost>true</UseAppHost> |
|
27 | 27 | <IlcSdkPath>$(CoreCLRAotSdkDir)</IlcSdkPath> |
28 | 28 | <IlcFrameworkPath>$(NetCoreAppCurrentTestHostSharedFrameworkPath)</IlcFrameworkPath> |
29 | 29 | <NoWarn>$(NoWarn);IL3050;IL3051;IL3052;IL3054;IL3055;IL1005;IL3002</NoWarn> |
| 30 | + <TrimMode>partial</TrimMode> |
30 | 31 | <TrimmerSingleWarn>false</TrimmerSingleWarn> |
31 | 32 | <SuppressTrimAnalysisWarnings>true</SuppressTrimAnalysisWarnings> |
32 | 33 |
|
33 | 34 | <!-- Forced by ILLink targets; we should fix the SDK --> |
34 | 35 | <SelfContained>true</SelfContained> |
| 36 | + |
| 37 | + <!-- Works around https://github.com/dotnet/runtime/issues/73926 --> |
| 38 | + <!-- RequiresUnreferenceCodeAttribute method called --> |
| 39 | + <NoWarn>$(NoWarn);IL2026;IL2116</NoWarn> |
| 40 | + <!-- Invalid use of DynamicallyAccessedMembersAttribute --> |
| 41 | + <NoWarn>$(NoWarn);IL2041;IL2042;IL2043;IL2056</NoWarn> |
| 42 | + <!-- Reference to removed attribute type --> |
| 43 | + <NoWarn>$(NoWarn);IL2045</NoWarn> |
| 44 | + <!-- RequiresUnreferencedCodeAttribute mismatch on virtual override --> |
| 45 | + <NoWarn>$(NoWarn);IL2046</NoWarn> |
| 46 | + <!-- COM marshalling warning --> |
| 47 | + <NoWarn>$(NoWarn);IL2050</NoWarn> |
| 48 | + <!-- Reflection intrinsics with unknown arguments --> |
| 49 | + <NoWarn>$(NoWarn);IL2032;IL2055;IL2057;IL2058;IL2059;IL2060;IL2061;IL2096</NoWarn> |
| 50 | + <!-- Unknown values passed to locations with DynamicallyAccessedMemberTypes --> |
| 51 | + <NoWarn>$(NoWarn);IL2062;IL2063;IL2064;IL2065;IL2066</NoWarn> |
| 52 | + <!-- Unsatisfied DynamicallyAccessedMembers requirements --> |
| 53 | + <NoWarn>$(NoWarn);IL2067;IL2068;IL2069;IL2070;IL2071;IL2072;IL2073;IL2074;IL2075;IL2076;IL2077;IL2078;IL2079;IL2080;IL2081;IL2082;IL2083;IL2084;IL2085;IL2086;IL2087;IL2088;IL2089;IL2090;IL2091</NoWarn> |
| 54 | + <!-- DynamicallyAccessedMembersAttribute mismatch on virtual override --> |
| 55 | + <NoWarn>$(NoWarn);IL2092;IL2093;IL2094;IL2095</NoWarn> |
| 56 | + <!-- DynamicallyAccessedMembersAttribute used on unsupported member --> |
| 57 | + <NoWarn>$(NoWarn);IL2097;IL2098;IL2099;IL2106</NoWarn> |
| 58 | + <!-- Unknown value passed to Expression.Property --> |
| 59 | + <NoWarn>$(NoWarn);IL2103</NoWarn> |
| 60 | + <!-- Multiple methods associated with state machine type or user method --> |
| 61 | + <NoWarn>$(NoWarn);IL2107;IL2117</NoWarn> |
| 62 | + <!-- Unannotated type derived from base type with RequiresUnreferencedCode --> |
| 63 | + <NoWarn>$(NoWarn);IL2109</NoWarn> |
| 64 | + <!-- Reflection access to members with DynamicallyAccessedMembers requirements --> |
| 65 | + <NoWarn>$(NoWarn);IL2110;IL2111;IL2114;IL2115</NoWarn> |
| 66 | + <!-- Reflection access to members with RequiresUnreferencedCode --> |
| 67 | + <NoWarn>$(NoWarn);IL2112;IL2113</NoWarn> |
| 68 | + <!-- Reflection access to compiler-generated code --> |
| 69 | + <NoWarn>$(NoWarn);IL2118;IL2119;IL2120</NoWarn> |
| 70 | + |
35 | 71 | </PropertyGroup> |
36 | 72 |
|
37 | 73 | <Import Project="$(CoreCLRBuildIntegrationDir)Microsoft.DotNet.ILCompiler.targets" Condition="'$(TestNativeAot)' == 'true'" /> |
|
0 commit comments