如何运行现有的phonegap(ios)应用程序在VisualStudio的Windows开发 [英] How to run existing phonegap(ios) app in VisualStudio for windows development
问题描述
我工作在phonegap(IOS)从6个月,应用程序已经准备好了。
,但现在我想要这个应用程序运行在visualstudio。
I am working on phonegap (IOS) since 6months, application is ready to go. but now i want this application to run on visualstudio.
我使用VS2010和也安装windows sdk的手机development.i还安装cordova模板
i am useing VS2010 and also installed windows sdk for phone development.i have also install cordova template for windows and its working fine for new development.
但现在我想使用我的现成的phonegap应用程序thas是在xcode中的ios在windows。
but now all i want to use my ready made phonegap application thas was made in xcode for ios in windows.
我如何才能实现?
修改:
我的ios应用程序到VS我只是替换WWW文件夹的应用程序在VS,并尝试运行application.it打开模拟器很好,甚至调用第一个Index.html页面,但没有css / js refrence其getting.even没有点击事件被调用。所以有什么改变的WWW文件夹结构,我必须为Windows执行?我是新的windows手机。
Edits : When trying to run my ios application to VS i just replace WWW folder of application in VS and try to run application.it opened emulator well and even called first "Index.html" page but no css/js refrence its getting.even no click events are called. so is there any change in WWW folder structure that i have to perform for windows ? i am new for windows phone.
推荐答案
- Buld project;然后检查CordovaSourceDictionary.xml中存在的所有文件
- 如果没有,请确保所有文件都具有构建操作内容(如何对文件设置构建操作 - 高级属性未在属性窗口中显示)
- 如果没有帮助,请尝试将以下行添加到index.html中,以查看是否存在任何js错误(错误将显示在VS输出窗口中 - Ctrl + Alt + O)
<script type="text/javascript">
window.console = {
log: function (str) { window.external.Notify(str); }
};
// output errors to console log
window.onerror = function (e) {
console.log("window.onerror ::" + JSON.stringify(e));
};
console.log("Installed console !");
</script>
这篇关于如何运行现有的phonegap(ios)应用程序在VisualStudio的Windows开发的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!