Add .rd.xml file to D2D1 sample, improve .csproj

このコミットが含まれているのは:
Sergio Pedri committed 2023-04-22 01:34:36 +02:00
1 親 699d905234
コミット 2f72522bc3
2ファイル変更
+29 -1

検索条件に一致するファイルはありません

+14 -1
ファイルの表示
@@ -2,12 +2,25 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0-windows10.0.22621</TargetFramework>
<TargetFramework>net7.0-windows10.0.22621</TargetFramework>
<ApplicationManifest>app.manifest</ApplicationManifest>
<Platforms>x64;ARM64</Platforms>
<NoWarn>$(NoWarn);IDE0065</NoWarn>
</PropertyGroup>
<!-- Same optional NativeAOT property group as in ComputeSharp.SwapChain.Cli -->
<PropertyGroup Condition="'$(COMPUTESHARP_SWAPCHAIN_D2D1_PUBLISH_AOT)' == 'true'">
<PublishAot>true</PublishAot>
<UseSystemResourceKeys>true</UseSystemResourceKeys>
<InvariantGlobalization>true</InvariantGlobalization>
<IlcOptimizationPreference>Speed</IlcOptimizationPreference>
</PropertyGroup>
<!-- Also include the .rd.xml file to fix some NativeAOT issues with CsWinRT -->
<ItemGroup Condition="'$(COMPUTESHARP_SWAPCHAIN_D2D1_PUBLISH_AOT)' == 'true'">
<RdXmlFile Include="Properties\Default.rd.xml" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Graphics.Win2D" Version="1.1.0-preview1" />
<PackageReference Include="PolySharp" Version="1.13.1" PrivateAssets="all" />
+15
ファイルの表示
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" ?>
<Directives>
<Application>
<Assembly Name="WinRT.Runtime">
<Type Name="WinRT.IObjectReference">
<Method Name="As" Dynamic="Required All">
<GenericArgument Name="ABI.Microsoft.Graphics.Canvas.ICanvasFactoryNative+Interface+Vftbl, ComputeSharp.SwapChain.D2D1" />
</Method>
<Method Name="As" Dynamic="Required All">
<GenericArgument Name="ABI.System.IDisposable+Vftbl, WinRT.Runtime" />
</Method>
</Type>
</Assembly>
</Application>
</Directives>