60 行
3.1 KiB
XML
60 行
3.1 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
<PropertyGroup>
|
|
<OutputType Condition="'$(CI_RUNNER_SAMPLES_INTEGRATION_TESTS)' == 'true'">Exe</OutputType>
|
|
<OutputType Condition="'$(CI_RUNNER_SAMPLES_INTEGRATION_TESTS)' != 'true'">WinExe</OutputType>
|
|
<TargetFramework>net8.0-windows10.0.22621</TargetFramework>
|
|
<ApplicationManifest>app.manifest</ApplicationManifest>
|
|
<Platforms>x64;ARM64</Platforms>
|
|
<RuntimeIdentifiers>win-x64;win-arm64</RuntimeIdentifiers>
|
|
<NoWarn>$(NoWarn);IDE0065</NoWarn>
|
|
<AssemblyName>computesharp.d2d1.cli</AssemblyName>
|
|
<ApplicationIcon>..\..\assets\icon.ico</ApplicationIcon>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup>
|
|
|
|
<!-- Workaround for WinRT.TypeExtensions.GetAuthoringMetadataType(Type) trim warning (see https://github.com/microsoft/CsWinRT/issues/1319) -->
|
|
<NoWarn>$(NoWarn);IL2104;IL2026</NoWarn>
|
|
</PropertyGroup>
|
|
|
|
<!-- Options for R2R publishing -->
|
|
<PropertyGroup Condition="'$(COMPUTESHARP_SWAPCHAIN_D2D1_PUBLISH_R2R)' == 'true'">
|
|
<PublishReadyToRunComposite>true</PublishReadyToRunComposite>
|
|
<PublishSingleFile>true</PublishSingleFile>
|
|
<PublishTrimmed>true</PublishTrimmed>
|
|
<SelfContained>true</SelfContained>
|
|
</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>
|
|
<StackTraceSupport>false</StackTraceSupport>
|
|
<OptimizationPreference>Speed</OptimizationPreference>
|
|
|
|
<!-- Workaround for WinRT.Runtime and System.Linq.Expressions producing trim warnings -->
|
|
<NoWarn>$(NoWarn);IL3053</NoWarn>
|
|
</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="TerraFX.Interop.Windows" Version="10.0.22621.2" />
|
|
</ItemGroup>
|
|
|
|
<!-- Note: using SetPlatform="Platform=AnyCPU" for the analyzers to avoid issues (see https://github.com/dotnet/roslyn/issues/70148) -->
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\..\src\ComputeSharp.Core.SourceGenerators\ComputeSharp.Core.SourceGenerators.csproj" SetPlatform="Platform=AnyCPU" OutputItemType="Analyzer" ReferenceOutputAssembly="false" PrivateAssets="contentfiles;build" />
|
|
<ProjectReference Include="..\..\src\ComputeSharp.Core\ComputeSharp.Core.csproj" />
|
|
<ProjectReference Include="..\..\src\ComputeSharp.D2D1.SourceGenerators\ComputeSharp.D2D1.SourceGenerators.csproj" SetPlatform="Platform=AnyCPU" OutputItemType="Analyzer" ReferenceOutputAssembly="false" PrivateAssets="contentfiles;build" />
|
|
<ProjectReference Include="..\..\src\ComputeSharp.D2D1.WinUI\ComputeSharp.D2D1.WinUI.csproj" />
|
|
<ProjectReference Include="..\..\src\ComputeSharp.D2D1\ComputeSharp.D2D1.csproj" />
|
|
</ItemGroup>
|
|
|
|
<Import Project="..\ComputeSharp.SwapChain.Shaders.D2D1.Shared\ComputeSharp.SwapChain.Shaders.D2D1.Shared.projitems" Label="Shared" />
|
|
</Project>
|