57 行
2.8 KiB
XML
57 行
2.8 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
<PropertyGroup>
|
|
<TargetFramework>net8.0-windows10.0.22621.0</TargetFramework>
|
|
<WindowsSdkPackageVersion>10.0.22621.45</WindowsSdkPackageVersion>
|
|
<Platforms>x64;ARM64</Platforms>
|
|
<RuntimeIdentifiers>win-x64;win-arm64</RuntimeIdentifiers>
|
|
</PropertyGroup>
|
|
|
|
<PropertyGroup>
|
|
<CsWinRTComponent>true</CsWinRTComponent>
|
|
|
|
<!--
|
|
CsWinRT uses the assembly name to find the root namespace to use to crawl for exported types.
|
|
We are changing this to exclude the 'WinRT' suffix, since that is not actually necessary.
|
|
-->
|
|
<AssemblyName>ComputeSharp.NativeLibrary</AssemblyName>
|
|
|
|
<!-- CsWinRT size saving options (also disabling some features that aren't needed) -->
|
|
<CsWinRTEnableDynamicObjectsSupport>false</CsWinRTEnableDynamicObjectsSupport>
|
|
<CsWinRTUseExceptionResourceKeys>true</CsWinRTUseExceptionResourceKeys>
|
|
<CsWinRTEnableDefaultCustomTypeMappings>false</CsWinRTEnableDefaultCustomTypeMappings>
|
|
<CsWinRTEnableICustomPropertyProviderSupport>false</CsWinRTEnableICustomPropertyProviderSupport>
|
|
<CsWinRTEnableIReferenceSupport>false</CsWinRTEnableIReferenceSupport>
|
|
<CsWinRTEnableIDynamicInterfaceCastableSupport>false</CsWinRTEnableIDynamicInterfaceCastableSupport>
|
|
|
|
<!--
|
|
WinRT component warning suppression due to a default MSVC warning:
|
|
"LNK4104: export of symbol 'DllCanUnloadNow' should be PRIVATE".
|
|
See: https://github.com/dotnet/runtime/issues/98047.
|
|
-->
|
|
<NoWarn>$(NoWarn);LNK4104</NoWarn>
|
|
</PropertyGroup>
|
|
|
|
<!-- NativeAOT configuration -->
|
|
<PropertyGroup>
|
|
<PublishAot>true</PublishAot>
|
|
<UseSystemResourceKeys>true</UseSystemResourceKeys>
|
|
<InvariantGlobalization>true</InvariantGlobalization>
|
|
<OptimizationPreference>Size</OptimizationPreference>
|
|
<StackTraceSupport>false</StackTraceSupport>
|
|
<IlcGenerateMstatFile>false</IlcGenerateMstatFile>
|
|
<IlcGenerateDgmlFile>false</IlcGenerateDgmlFile>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<PackageReference Include="Microsoft.Windows.CsWinRT" Version="2.1.3" />
|
|
</ItemGroup>
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\..\src\ComputeSharp.Core.SourceGenerators\ComputeSharp.Core.SourceGenerators.csproj" 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" 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>
|
|
</Project>
|