我正在尝试验证我的应用程序,但出现以下错误:
发现错误:支持的 API 测试检测到以下错误:
This API is not supported for this application type - Api=Windows.UI.Notifications.ToastNotification. Module=. File=X.Service.dll.
This API is not supported for this application type - Api=Windows.UI.Notifications.ToastNotification..ctor. Module=. File=X.Service.dll.
This API is not supported for this application type - Api=Windows.UI.Notifications.ToastNotification.put_SuppressPopup. Module=. File=X.Service.dll.
This API is not supported for this application type - Api=Windows.UI.Notifications.ToastNotificationManager. Module=. File=X.Service.dll.
This API is not supported for this application type - Api=Windows.UI.Notifications.ToastNotificationManager.CreateToastNotifier. Module=. File=X.Service.dll.
This API is not supported for this application type - Api=Windows.UI.Notifications.ToastNotificationManager.GetTemplateContent. Module=. File=X.Service.dll.
This API is not supported for this application type - Api=Windows.UI.Notifications.ToastNotifier. Module=. File=X.Service.dll.
This API is not supported for this application type - Api=Windows.UI.Notifications.ToastNotifier.Show. Module=. File=X.Service.dll.
This API is not supported for this application type - Api=Windows.UI.Notifications.ToastTemplateType. Module=. File=X.Service.dll.
Impact if not fixed: Using an API that is not part of the Windows SDK for Windows Phone Store apps violates the Windows Phone Store certification requirements.
但是,如果您检查这些 msdn 页面,您可以看到 WP 8.1 Silverlight 明确支持它:http://msdn.microsoft.com/library/windows/apps/windows.ui.notifications.toastnotification.aspx http://msdn.microsoft.com/library/windows/apps/windows.ui.notifications.toastnotification.aspx
http://msdn.microsoft.com/en-us/library/windows.ui.notifications.aspx http://msdn.microsoft.com/en-us/library/windows.ui.notifications.aspx
Minimum supported phone
Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]
还有其他人遇到这个问题吗?
我已经找到问题了它位于 WMAppManifest.xml 中,如果您想使用 Windows.UI.Notifications,则必须选择 WNS,否则您必须使用 ShellToast。查看此页面:
http://msdn.microsoft.com/en-us/library/windows/apps/dn642085%28v=vs.105%29.aspx http://msdn.microsoft.com/en-us/library/windows/apps/dn642085%28v=vs.105%29.aspx
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)