Search code examples
multi-device-hybrid-apps

WinJS Sample Code js file missing?


"WinJS ToDo Sample for Multi-Device Hybrid Apps" Sample Code Project (http://code.msdn.microsoft.com/WinJS-TODO-Sample-for-17295485/sourcecode?fileId=114491&pathId=1137423199), I tried download and run it , but the index.html file include three file for winjs reference : ./css/ui-light.css , ./scripts/frameworks/base.min.js , ./scripts/frameworks/ui.min.js , can't be found in the project .

what's i missing some thing ?


Solution

  • The sample projects have been authored in a way that the requisite dependency frameworks will be automatically downloaded when you run the project for the first time.

    However, the libraries may fail to download in case the script does not have the right permissions to execute. To fix this:

    • Open the folder where you’ve downloaded the sample app

    • Identify the FetchRequirements.ps1 file and right click it

    enter image description here

    • Choose “Properties”

    • Click the Unblock button if it shows up

    enter image description here

    • Try to run the project again through Visual Studio