Building windows 10 App

Finally I solved this issue by installing Build Tools for Visual Studio 2017. Assuming that you have already installed Visual Studio 2017 on your machine.

  1. Go the official website of Visual Studio 2017 .

  2. Scoll down a little bit and you will find a list of options.

  3. Expand Other Tools and Frameworks. Download and Install Build Tools for Visual Studio 2017.

  4. Go to System Environment Variables.

  5. Make a new variable with this Name and Path:
    VSINSTALLDIR = C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\

  6. Now go to your ionic Project and add these two lines in config.xml file:

  7. <preference name=“windows-target-version” value=“10.0”/

  8. <preference name=“windows-phone-target-version” value=“10.0” /

  9. Please Close the preference tag. This editor is hiding it if I put closing symbol.

  10. Open command prompt or terminal, go to your project directory and run this command:
    ionic cordova build windows

Hope it will help you guys.

8 Likes