c# - Convert Windows store javascript app into website -
i have simple windows store javascript app, , having problems writing , playback coded ui tests. Аnd had idea: convert win store js app website , test in of plurality of web-frameworks.
unfortunately, find information how convert site win store app, , nothing on idea.
how can convert windows store javascript app website?? grateful information in matter.
how can convert windows store javascript app website?? grateful information in matter.
it not documented, it's not difficult convert uwp(js) app web app. need following work on app:
- copy html,css , javascript(including js libraries) , related assets files newly created web app folder.
- as there no application lifecycle in web app. need remove/modify lifecycle events in project. (ex:
windows.ui.webui.webuiapplication.onactivated
event orwinjs.application.onactivated
event if using winjs). - windows runtime apis not available in web app. avoid errors, necessary remove or comment out related codes calls winrt api (mostly apis start
windows
ormsapp
). (ex:windows.storage.storagefile.getfilefrompathasyncwindows.storage.storagefile.getfilefrompathasync
). - remove
ms-appx:///
,ms-appdata:///
,ms-app-web:///
, replace them normal relative path../../assets/
. - if using
<x-ms-webview>
, remove or replaceiframe
.
Comments
Post a Comment