66 行
2.7 KiB
XML
66 行
2.7 KiB
XML
<Project Sdk="Microsoft.NET.Sdk">
|
|
<PropertyGroup>
|
|
<TargetFrameworks>netstandard2.0;net6.0</TargetFrameworks>
|
|
<OutputPath>bin\Release</OutputPath>
|
|
<DocumentationFile>ComputeSharp.Pix.xml</DocumentationFile>
|
|
<Platforms>AnyCPU;x64;ARM64</Platforms>
|
|
<SupportedOSVersion>windows6.2</SupportedOSVersion>
|
|
</PropertyGroup>
|
|
|
|
<!-- Reference to the main library-->
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\ComputeSharp\ComputeSharp.csproj" />
|
|
</ItemGroup>
|
|
|
|
<Choose>
|
|
|
|
<!-- When building locally for x64/ARM64, only support the non-UAP libraries -->
|
|
<When Condition="'$(Platform)' == 'x64'">
|
|
<ItemGroup>
|
|
<None Include="Libraries\x64\WinPixEventRuntime.dll"
|
|
Link="WinPixEventRuntime.dll"
|
|
Visible="False"
|
|
CopyToOutputDirectory="PreserveNewest" />
|
|
</ItemGroup>
|
|
</When>
|
|
<When Condition="'$(Platform)' == 'ARM64'">
|
|
<ItemGroup>
|
|
<None Include="Libraries\arm64\WinPixEventRuntime.dll"
|
|
Link="WinPixEventRuntime.dll"
|
|
Visible="False"
|
|
CopyToOutputDirectory="PreserveNewest" />
|
|
</ItemGroup>
|
|
</When>
|
|
|
|
<!-- When no RID is specified, it means the NuGet package is being packed. In this case,
|
|
copy all libraries, and then rely on the custom .targets file to unpack them correctly. -->
|
|
<Otherwise>
|
|
<PropertyGroup>
|
|
<WinPixEventRuntimeVersion>winpixeventruntime.1.0.220810001</WinPixEventRuntimeVersion>
|
|
</PropertyGroup>
|
|
<ItemGroup>
|
|
<None Include="Libraries\x64\WinPixEventRuntime.dll"
|
|
Link="$(WinPixEventRuntimeVersion)\x64\WinPixEventRuntime.dll"
|
|
Visible="False"
|
|
CopyToOutputDirectory="PreserveNewest"
|
|
PackFolder="$(WinPixEventRuntimeVersion)\x64" />
|
|
<None Include="Libraries\x64\WinPixEventRuntime_UAP.dll"
|
|
Link="$(WinPixEventRuntimeVersion)\x64\WinPixEventRuntime_UAP.dll"
|
|
Visible="False"
|
|
CopyToOutputDirectory="PreserveNewest"
|
|
PackFolder="$(WinPixEventRuntimeVersion)\x64" />
|
|
<None Include="Libraries\arm64\WinPixEventRuntime.dll"
|
|
Link="$(WinPixEventRuntimeVersion)\arm64\WinPixEventRuntime.dll"
|
|
Visible="False"
|
|
CopyToOutputDirectory="PreserveNewest"
|
|
PackFolder="$(WinPixEventRuntimeVersion)\arm64" />
|
|
<None Include="Libraries\arm64\WinPixEventRuntime_UAP.dll"
|
|
Link="$(WinPixEventRuntimeVersion)\arm64\WinPixEventRuntime_UAP.dll"
|
|
Visible="False"
|
|
CopyToOutputDirectory="PreserveNewest"
|
|
PackFolder="$(WinPixEventRuntimeVersion)\arm64" />
|
|
</ItemGroup>
|
|
</Otherwise>
|
|
</Choose>
|
|
</Project>
|