ItemGroup Condition not copying correct assembly to the apk xamarin.android

Vinayak Nikam 71 Reputation points
2021-07-21T11:57:07.38+00:00

Though I have provided below section on my xamarin android project file, I see Microsoft.AppCenter.Distribute.dll in the apk. It's not copying DistributePlay dll.

<ItemGroup Condition=" '$(Configuration)' != 'GooglePlay' ">
<PackageReference Include="Microsoft.AppCenter.Distribute" Version="3.3.0" />
</ItemGroup>
<ItemGroup Condition=" '$(Configuration)' == 'GooglePlay' ">
<PackageReference Include="Microsoft.AppCenter.DistributePlay" Version="3.3.0" />
</ItemGroup>

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,348 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.