Perfect Combination of Html5 in Visual Studio
In Visual Studio, a god plug-in: Multi-Device Hybrid App Extension is displayed. This plug-in allows us to use the VS tool, Html5 (JavaScript) language, to complete the development of mobile applications on all popular platforms. In addition, through the WinJs framework, this plug-in can conveniently call the hardware functions and solve the disadvantages of JS's lack of local function calls in the past.
Installation address: http://www.visualstudio.com/en-us/explore/cordova-vs.aspx
Getting Started: http://msdn.microsoft.com/zh-cn/library/dn757057.aspx
The use of plug-ins has been introduced in many blogs. I will not mention it here. The focus of this article is to help you set up the environment. Many friends cannot compile the plug-in for the first time. Check with me whether you have the following problems.
1, if you are VS Update3, please install CTP2.0,: http://www.microsoft.com/en-us/download/details.aspx? Id = 42675
2. Check whether the project directory contains Chinese characters. If any, an error is reported.
3. If you want to compile it to Windows Phone, this plug-in currently only supports WP8.0, And it will automatically generate a C # project (WP8.0 does not support native JS, to call JS through Webview in the C # program ). For non-English operating systems, garbled characters appear in the automatically generated code. Therefore, an error is reported during compilation:
You will find garbled characters in the three automatically generated files:
Modify all garbled headers
It looks disgusting, but we don't need to worry too much about this issue. We should soon support WP8.1. At this time, this problem does not exist. WP8.1 supports JS native.
Zookeeper