66 行
3.4 KiB
XML
66 行
3.4 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
<PropertyGroup>
|
|
<OutputType>WinExe</OutputType>
|
|
<TargetFramework>net8.0-windows10.0.22621.0</TargetFramework>
|
|
<WindowsSdkPackageVersion>10.0.22621.39</WindowsSdkPackageVersion>
|
|
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
|
|
<UseUwp>true</UseUwp>
|
|
<UseUwpTools>true</UseUwpTools>
|
|
<Platforms>x86;x64;arm64</Platforms>
|
|
<RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers>
|
|
<DefaultLanguage>en-US</DefaultLanguage>
|
|
<TargetPlatformVersion Condition=" '$(TargetPlatformVersion)' == '' ">10.0.22621.0</TargetPlatformVersion>
|
|
<PublishProfile>win-$(Platform).pubxml</PublishProfile>
|
|
<EnableMsixTooling>true</EnableMsixTooling>
|
|
<HasPackageAndPublishMenu>true</HasPackageAndPublishMenu>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup>
|
|
|
|
<!--
|
|
This sample does not need WebView2, but WinAppSDK is pulling it in as a transitive NuGet
|
|
dependency. We can manually exclude the native .dll-s to avoid them being in the output.
|
|
-->
|
|
<WebView2EnableCsWinRTProjectionExcludeCoreRef>true</WebView2EnableCsWinRTProjectionExcludeCoreRef>
|
|
<WebView2NeverCopyLoaderDllToOutputDirectory>true</WebView2NeverCopyLoaderDllToOutputDirectory>
|
|
|
|
<!--
|
|
Generate a .pdb file to avoid IIDOptimizer build errors.
|
|
See: https://github.com/microsoft/CsWinRT/issues/1478.
|
|
-->
|
|
<DebugType>full</DebugType>
|
|
</PropertyGroup>
|
|
|
|
<!-- NativeAOT settings, and size saving options for unnecessary features (optimize for speed otherwise) -->
|
|
<PropertyGroup>
|
|
<PublishAot>true</PublishAot>
|
|
<UseSystemResourceKeys>true</UseSystemResourceKeys>
|
|
<InvariantGlobalization>true</InvariantGlobalization>
|
|
<StackTraceSupport>false</StackTraceSupport>
|
|
<OptimizationPreference>Speed</OptimizationPreference>
|
|
<CsWinRTEnableDynamicObjectsSupport>false</CsWinRTEnableDynamicObjectsSupport>
|
|
<CsWinRTUseExceptionResourceKeys>true</CsWinRTUseExceptionResourceKeys>
|
|
<CsWinRTEnableDefaultCustomTypeMappings>false</CsWinRTEnableDefaultCustomTypeMappings>
|
|
<CsWinRTEnableICustomPropertyProviderSupport>false</CsWinRTEnableICustomPropertyProviderSupport>
|
|
<CsWinRTEnableIDynamicInterfaceCastableSupport>false</CsWinRTEnableIDynamicInterfaceCastableSupport>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectCapability Include="Msix" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Microsoft.Windows.CsWinRT" Version="2.1.1" />
|
|
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.6.240807006-preview1" IncludeAssets="build" PrivateAssets="all" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\..\src\ComputeSharp.Core.SourceGenerators\ComputeSharp.Core.SourceGenerators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" PrivateAssets="contentfiles;build" />
|
|
<ProjectReference Include="..\..\src\ComputeSharp.D2D1.Uwp\ComputeSharp.D2D1.Uwp.csproj" />
|
|
<ProjectReference Include="..\..\src\ComputeSharp.D2D1\ComputeSharp.D2D1.csproj" />
|
|
<ProjectReference Include="..\..\src\ComputeSharp.D2D1.SourceGenerators\ComputeSharp.D2D1.SourceGenerators.csproj" OutputItemType="Analyzer" ReferenceOutputAssembly="false" PrivateAssets="contentfiles;build" />
|
|
</ItemGroup>
|
|
|
|
<!-- Shared projects for the D2D1 shaders -->
|
|
<Import Project="..\ComputeSharp.SwapChain.Shaders.D2D1\ComputeSharp.SwapChain.Shaders.D2D1.projitems" Label="Shared" />
|
|
</Project> |