ファイル
ComputeSharp/src/ComputeSharp.Core/ComputeSharp.Core.csproj
T
2020-12-12 18:26:36 +01:00

29 行
1.3 KiB
XML

<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netstandard2.0;net5.0</TargetFrameworks>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<LangVersion>9.0</LangVersion>
</PropertyGroup>
<PropertyGroup>
<!--This is needed so that the packaging for the source generator is correct. We want to have the package references
of this project be private when packing the source generator (the nugetizer infrastructure recognizes that and
packages the dependencies directly alongside the main binary), and public dependencies when building for the main
project. Right now this is conditioned on the target framework, so this property is primarily for readability.-->
<BuildingForSourceGenerator>false</BuildingForSourceGenerator>
<BuildingForSourceGenerator Condition="'$(TargetFramework)' == 'netstandard2.0'">true</BuildingForSourceGenerator>
<PackSymbols Condition="'$(BuildingForSourceGenerator)' == true">false</PackSymbols>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Toolkit" Version="7.0.0-preview4" />
<!--Hide the package references when this assembly is being built for the source generator-->
<PackageReference Condition="'$(BuildingForSourceGenerator)' == 'true'" Update="@(PackageReference)" PrivateAssets="all" />
</ItemGroup>
</Project>