Billy Moon
Billy Moon

Reputation: 58541

Portability of windows apps compiled with jsc

I recently discovered you can compile JScript into console apps using a built in tool in the .NET framework called jsc. It is already installed on my computer, and other windows computers which have .NET.

I want to know if the final compiled exe is dependent on .NET. Also, is it completely portable. Can I build an app on my machine, and then distribute it, and expect it to work on everyone else's machine?

What technical details would I need to put in the release notes? Maybe that it depends on .NET etc...

Upvotes: 2

Views: 395

Answers (1)

aikeru
aikeru

Reputation: 3983

OK I'll put it into an answer format then :)

Concerning the JScript compiler (jsc):

  • The compiled exe will be dependent on .NET being installed on the target machine, just as any other .NET executable concerning versions, etc.
  • JScript.NET is a separate product from JScript (Microsoft's implementation of ECMAScript), so not everything will work in jsc that might work in the browser or in Windows Scripting Host.
  • I've read that JScript.NET was more-or-less abandoned by MS

Dynamic Language Runtime Discussion on JScript.NET

JScript.NET abandoned mentioned in IronJS article

SO question concerning JScript.NET

ie: it doesn't know anything about generics, and won't let you reference generic types, or call generic methods. In terms of implementation, it uses reflection heavily with no additional optimizing layers (like DLR), and so is rather slower than e.g. IronPython.

You can also make console applications from other languages.

Upvotes: 3

Related Questions