<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <ApiContractPackageVersion>0.10.0</ApiContractPackageVersion>
    <NugetPackageName Condition="'$(PackageId)' != ''">$(PackageId)</NugetPackageName>
    <NugetPackageName Condition="'$(PackageId)' == ''">Avalonia</NugetPackageName>
    <RunApiCompat Condition="'$(TargetFramework)' == 'net6.0'">false</RunApiCompat>
  </PropertyGroup>
  <ItemGroup>
    <PackageDownload Include="$(NugetPackageName)" Version="[$(ApiContractPackageVersion)]" />
    <PackageReference Include="Microsoft.DotNet.ApiCompat" Version="5.0.0-beta.20372.2" PrivateAssets="All" />
    <ResolvedMatchingContract Include="$(NuGetPackageRoot)\$(NugetPackageName.ToLowerInvariant())\$(ApiContractPackageVersion)\lib\$(TargetFramework)\$(AssemblyName).dll" />
  </ItemGroup>
</Project>
