forked from dotnet/eShop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Directory.Build.targets
26 lines (21 loc) · 1.2 KB
/
Directory.Build.targets
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<Project>
<PropertyGroup Condition="'$(PublishAot)' == 'true'">
<!-- EventSource is disabled by default for non-ASP.NET AOT'd apps, re-enable it -->
<EventSourceSupport>true</EventSourceSupport>
<!-- Ensure individual warnings are shown when publishing -->
<TrimmerSingleWarn>false</TrimmerSingleWarn>
<!-- But ignore the single warn files marked below to suppress their known warnings. -->
<NoWarn>$(NoWarn);IL2104</NoWarn>
</PropertyGroup>
<Target Name="ConfigureTrimming"
BeforeTargets="PrepareForILLink">
<!-- Single warn the following assemblies, which have known warnings, so the warnings can be suppressed for now. -->
<ItemGroup>
<!-- https://github.com/rabbitmq/rabbitmq-dotnet-client/issues/1410 is tracking fixing the one EventSource warning in RabbitMQ. -->
<IlcArg Include="--singlewarnassembly:RabbitMQ.Client" />
<!-- https://github.com/dotnet/runtime/issues/94117 will fix the warnings coming from the ConfigBinder source generator in these assemblies. -->
<IlcArg Include="--singlewarnassembly:Aspire.RabbitMQ.Client" />
<IlcArg Include="--singlewarnassembly:Aspire.StackExchange.Redis" />
</ItemGroup>
</Target>
</Project>