Perfect Combination of Html5 in Visual Studio

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.