【发布时间】:2018-07-26 19:31:40
【问题描述】:
我在 Xamarin UWP 商店中有一个实时应用程序,我已经实施了试用版和一个运行良好的付费版本。现在我想在从 PCL 转换为 .Net Standard 2.0 后发布应用程序的新更新。当我构建时,我收到证书错误,它要求我输入我上传到服务器的证书的密码。
它不接受我的密码。我很确定我输入了正确的密码。我不知道原因。所以我的问题是;
证书在 LicenseInformation 中是否起任何作用?我基本上是用下面的代码检查它是否是试用版。如果我创建新证书,是否会对现有购买产生任何影响?
我尝试使用本地 CurrentAppSimulator 使用新证书,一切正常,但尽管我重新关联到存储应用程序,但使用 CurrentApp 时出现异常,如下所示。是因为我使用的证书与商店中的证书不同吗?那么如果我提供一个新的提交和一个新的证书,问题就解决了吗?
来自 HRESULT 的 System.ExceptionException:0x803F6107 Raw at Windows.ApplicationModel.Store.CurrentApp.get_LicenseInformation()
#if !DEBUG
licenseInformation = CurrentApp.LicenseInformation;
#else
licenseInformation = CurrentAppSimulator.LicenseInformation;
#endif
licenseInformation.LicenseChanged +=LicenseInformation_LicenseChanged;
if (licenseInformation.IsActive)
{
if (licenseInformation.IsTrial)
{
【问题讨论】:
标签: xamarin.forms uwp xamarin.uwp