31 lines
1.2 KiB
XML
31 lines
1.2 KiB
XML
|
|
<Project Sdk="Microsoft.NET.Sdk">
|
||
|
|
|
||
|
|
<Import Project="common.props" />
|
||
|
|
|
||
|
|
<PropertyGroup>
|
||
|
|
<TargetFrameworks>net6.0;net8.0</TargetFrameworks>
|
||
|
|
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||
|
|
<ApplicationIcon />
|
||
|
|
<OutputType>Library</OutputType>
|
||
|
|
<StartupObject />
|
||
|
|
<Platforms>x64;x86;ARM64;ARM32</Platforms>
|
||
|
|
<Optimize>true</Optimize>
|
||
|
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||
|
|
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
|
||
|
|
<IsTrimmable Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">true</IsTrimmable>
|
||
|
|
<IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net8.0'))">true</IsAotCompatible>
|
||
|
|
</PropertyGroup>
|
||
|
|
|
||
|
|
<ItemGroup>
|
||
|
|
<InternalsVisibleTo Include="$(AssemblyName).Tests" />
|
||
|
|
<InternalsVisibleTo Include="$(AssemblyName).Samples" />
|
||
|
|
</ItemGroup>
|
||
|
|
|
||
|
|
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETFramework'">
|
||
|
|
<!-- Constrain the version to 4.5.1, as later versions require .NET Framework 4.6.2.
|
||
|
|
https://github.com/dotnet/maintenance-packages/issues/42
|
||
|
|
-->
|
||
|
|
<PackageReference Include="System.Buffers" Version="[4.5.1]" />
|
||
|
|
</ItemGroup>
|
||
|
|
|
||
|
|
</Project>
|