PhoneGap for Windows Phone - There is no script engine for file extension “.js”

百般思念 提交于 2019-12-31 10:48:34

问题


I've created new project using Microsoft visual Studio ,but got a compilation error as below:

  1. There is no script engine for file extension ".js"
  2. The command "CScript "c:\users\raja\documents\visual studio 2010\Projects\EasyMed.3\EasyMed.3/BuildManifestProcessor.js" "c:\users\raja\documents\visual studio 2010\Projects\EasyMed.3\EasyMed.3\EasyMed.3.csproj"" exited with code 1.

Any idea?


回答1:


This problem happens when your .js files become associated with something besides CScript. Usually it happens when you decide to make some text editor the default. You can reset it by typing this from a command line:

assoc .js=JSFILE




回答2:


The instructions for installing Cordova 2.1 for Windows Phone are not complete.

They say:

  • copy the file CordovaStarter-x.x.x.zip to the folder : \My Documents\Visual Studio 2010\Templates\ProjectTemplates\

But that file is not supplied. There are updated instructions here (see section 2.1).

Here is the issue at apache: https://issues.apache.org/jira/browse/CB-1531

See also this question for more details: Not Able To Install Apache Cordova for Windows Phone7




回答3:


There is no script engine for file extension----- Try this :

http://www.microsoft.com/downloads/details.aspx?FamilyID=47809025-D896-482E-A0D6-524E7E844D81&displaylang=en



来源:https://stackoverflow.com/questions/12798836/phonegap-for-windows-phone-there-is-no-script-engine-for-file-extension-js

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!