question

VinayakNikam-2649 avatar image
0 Votes"
VinayakNikam-2649 asked JarvanZhang-MSFT commented

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

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>

dotnet-xamarin
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, VinayakNikam-2649. I followed the doc to distribute an apk and reproduced the issue on my side. Updating the nuget to the last stable version doesn't work. Even if I change the config code like the following, the assembily is still Microsoft.AppCenter.Distribute in the apk.

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

There may be a potential issue or it require additional steps that are not included in the doc. Sorry, we're not experts in AppCenter. It's suggested to seed feedback to the App Center portal for support. Check the link: https://docs.microsoft.com/en-us/appcenter/help#accessing-app-center-free-support

0 Votes 0 ·

0 Answers