PhoneGap for Windows Phone - There is no script en

2020-05-21 05:24发布

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?

3条回答
姐就是有狂的资本
3楼-- · 2020-05-21 06:04

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

查看更多
家丑人穷心不美
4楼-- · 2020-05-21 06:23

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

查看更多
登录 后发表回答