编辑:在调试中,你可以设置Guide.SimulateTrialMode
为了测试这种方式或其他,看起来。
因此,这里是在Windows 8商店应用程式有关信息试用模式:
Create a trial version of your app
LicenseInformation class
基本上,它利用一个布尔标志licenseInformation.IsTrial
。如果再深入到MonoGame source code on GitHub,我们可以看到他们是如何实施检查:
#if WINDOWS_STOREAPP
var licenseInformation = CurrentApp.LicenseInformation;
...
isTrialMode = !licenseInformation.IsActive || licenseInformation.IsTrial;
#endif
所以,看来你licenseInformation或者未设置为活动的,或者如果你有问题测试设置为审判。第一个链接有关于如何测试它的信息,但我不确定如何将其扩展到MonoGame:
现在,使用模拟调用许可证服务器来测试您的应用程序。在JavaScript,C#,Visual Basic或Visual C++中,用应用程序的初始化代码中的CurrentAppSimulator替换对CurrentApp的引用。 CurrentAppSimulator从位于\ Microsoft \ Windows Store \ ApiData的名为“WindowsStoreProxy.xml”的XML文件中获取特定于测试的许可信息。如果此路径和文件不存在,则必须在安装期间或运行时创建它们。如果您尝试访问CurrentAppSimulator.LicenseInformation属性而没有在该特定位置存在WindowsStoreProxy.xml,则会出现错误。
我想在最坏的情况下,你可以自己构建MonoGame,将CurrentApp
更改为CurrentAppSimulator
。
这可能有助于https://monogame.codeplex.com/discussions/318106 – craftworkgames
我已经看过,但它已经过了一年多了(WP7'IsTrialMode'现在可以工作)。我开始认为我需要一个单独的Windows应用程序代码路径。 –