Skip to content

Commit fa615d6

Browse files
committed
Ignore 'IL2081' warning in R2R publish test
1 parent 1b0783d commit fa615d6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

samples/ComputeSharp.SwapChain.D2D1.Cli/ComputeSharp.SwapChain.D2D1.Cli.csproj

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,15 @@
4747

4848
<!-- Using 'PublishSingleFile' requires 'EnableMsixTooling' for embedded resources.pri generation-->
4949
<EnableMsixTooling>true</EnableMsixTooling>
50+
51+
<!--
52+
Ignore the following warning, as it's from CsWinRT 2.2 missing some .NET 9 annotations:
53+
"ILLink : Trim analysis error IL2081: ABI.System.Collections.Generic.KeyValuePair<K,V>.<.cctor>g__InitFallbackCCWVTableIfNeeded|19_0(): 'KAbi' generic argument does not satisfy
54+
'DynamicallyAccessedMemberTypes.PublicParameterlessConstructor' in 'ABI.System.Collections.Generic.KeyValuePairMethods<K,KAbi,V,VAbi>'. The field 'WinRT.Marshaler<T>.AbiType'
55+
does not have matching annotations. The source value must declare at least the same requirements as those declared on the target location it is assigned to."
56+
This can be removed once CsWinRT 2.3 is released.
57+
-->
58+
<NoWarn>$(NoWarn);IL2081</NoWarn>
5059
</PropertyGroup>
5160

5261
<!-- Same optional NativeAOT property group as in ComputeSharp.SwapChain.Cli -->

0 commit comments

Comments
 (0)