I have a Xamarin Android App in which I need to check the VersionName. Here is the function call:

```
var appVersion = PackageManager.GetPackageInfo(PackageName, 0).VersionName;

```

It has been working fine. All of a sudden with the last Android OS update, the function call is deprecated. I prefer not to use Xamarin Essentials. Doing that forces me to use older Nuget packages. Does anyone know what the preferred way will be to get the Version Name in Xamarin going forward?

Thanks,
Jim