VS 2015 cross-platform mobile app configuration tutorial, vs2015 development tutorial

Source: Internet
Author: User

VS 2015 cross-platform mobile app configuration tutorial, vs2015 development tutorial

Preface

In order to use VS 2015 to develop cross-platform mobile apps, VS 2015 has been installed many times and has encountered many pitfalls before it finally figured out how to configure C # To develop mobile apps normally, we will share the steps with you to avoid detours. I won't talk much about it below. Let's take a look at the detailed introduction.

Running environment:

Windows 10 Professional Edition 64-bit

Visual Studio 2015 Update 3 (Enterprise Edition)

1. VS 2015 installation options. The s 10 mobile template for the generic Windows application development tool must be checked. C #/for cross-platform mobile development #/. NET (Xamarin 4.1.1) must be checked, Android local development kit must be checked, and JavaSE development kit must be checked. These items are not selected and cannot be used to develop mobile apps. Select one option for the android SDK, because it cannot be installed at all (You know ). It takes some time to install it. Please wait...

View the VS 2015 version (14.0.25431.01 ):

2, VS 2015 update 3 after the installation is complete, Android SDK is certainly not installed (You know), you need to download separately, I use the installer_r24.4.1-windows.exe to download

Run installer_r24.4.1-windows.exe:

3. In the installer_r24.4.1-windows installation directory (My is d: \ Android) Start SDK Manager.exe install Android SDK:

The Android SDK has many versions. You can choose to install it. If it is fully installed, the total size is 15 GB.

4. Start VS 2015 and select the "tools/options" menu, for example:

Find the Android Setings under Xamarin. for Android SDK Loation, enter your own Android SDK folder (my folder is E: \ Android \ android-sdk) and Development file, no error is reported.

All settings are complete.

5. Start VS2015 to create a project, select Cross-Platform, and select the Bank App (Native Shared) template named MyFirstMobileApp, for example:

6. Set MyFirstMobileApp. Droid to start the project and press F5 to run it. When the program starts, an error message (such as) is displayed ):

7. This indicates that the Hyper-V Virtual Machine Management Service has not been started. Therefore, open the control panel, find the management tool/service, and start the Hyper-V Virtual Machine Management Service (for example ).

8. After the Hyper-v vm management service is started, press F5 to run the program, for example:

9. Now the Android simulator is started. Disable the Android simulator and set the MyFirstMobileApp. WinPhone project as the startup Item. Then press F5 to start the Wondows Phone simulator, for example:

10. Some systems may not be able to start the simulator, or even the Hyper-V Virtual Machine Management Service cannot be found. In this case, check whether Hyper-V management is installed. You can open the control panel, find enable or disable Windows, and select Hyper-V, for example:

After completion, type a new step to start the program. If Hyper-V is invalid (cannot be checked), refer to the Windows Phone 8 simulator system requirements to set the bios of your machine.

Note:Because there is no Apple phone, the apple simulator is not installed.

Summary

The above is all the content of this article. I hope the content of this article has some reference and learning value for everyone's learning or work. If you have any questions, please leave a message to us, thank you for your support.

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.