зеркало из https://github.com/xamarin/AndroidX.git
25 строки
1.8 KiB
XML
25 строки
1.8 KiB
XML
<Project>
|
|
<!-- Enables "ExactVersion" attribute on "ProjectReference" to allow an exact NuGet reference version to be used.
|
|
https://github.com/NuGet/Home/issues/5556#issuecomment-1179526189 -->
|
|
<Target Name="UseExplicitPackageVersions" BeforeTargets="GenerateNuspec">
|
|
<ItemGroup>
|
|
<_ProjectReferenceWithExplicitPackageVersion Include="@(ProjectReference->'%(FullPath)')" Condition="'%(ProjectReference.PackageVersion)' != ''" />
|
|
<_ProjectReferenceWithExactPackageVersion Include="@(ProjectReference->'%(FullPath)')" Condition="'%(ProjectReference.ExactVersion)' == 'true'" />
|
|
<_ProjectReferenceWithReassignedVersion Include="@(_ProjectReferencesWithVersions)" Condition="'%(Identity)' != '' And '@(_ProjectReferenceWithExplicitPackageVersion)' == '@(_ProjectReferencesWithVersions)'">
|
|
<ProjectVersion>@(_ProjectReferenceWithExplicitPackageVersion->'%(PackageVersion)')</ProjectVersion>
|
|
</_ProjectReferenceWithReassignedVersion>
|
|
<_ProjectReferenceWithReassignedVersion Include="@(_ProjectReferencesWithVersions)" Condition="'%(Identity)' != '' And '@(_ProjectReferenceWithExactPackageVersion)' == '@(_ProjectReferencesWithVersions)'">
|
|
<ProjectVersion>[@(_ProjectReferencesWithVersions->'%(ProjectVersion)')]</ProjectVersion>
|
|
</_ProjectReferenceWithReassignedVersion>
|
|
<_ProjectReferencesWithVersions Remove="@(_ProjectReferenceWithReassignedVersion)" />
|
|
<_ProjectReferencesWithVersions Include="@(_ProjectReferenceWithReassignedVersion)" />
|
|
</ItemGroup>
|
|
</Target>
|
|
|
|
<PropertyGroup>
|
|
<!-- Mark .NET6+ packages as supporting trimming -->
|
|
<IsTrimmable Condition=" $([MSBuild]::VersionGreaterThanOrEquals('$([MSBuild]::GetTargetFrameworkVersion('$(TargetFramework)'))', '6.0')) ">true</IsTrimmable>
|
|
</PropertyGroup>
|
|
|
|
</Project>
|