Also another challenge I am facing is that I am trying to write a c# dll
project and just want to generate jscript out of it. Two issues with this
1. I am getting error when class one tries to use class2 like this
public class Class1
{
public string SayHello()
{
return "Hello world";
}
}
public class Class2
{
public string SayHelloTwice()
{
Class1 c1 = new Class1();
string msg = c1.SayHello();
msg = msg + c1.SayHello();
return msg;
}
}
I see following error
Javascript.Class1
Javascript.Class2
no implementation for Javascript.Class1 5158850b-9e9e-3e48-99ba-361f38f596c1
*** Compler cannot continue... press enter to quit.
script : warning JSC1000: Did you reference ScriptCoreLib via
IAssemblyReferenceToken?
script : error JSC1000: error at Javascript.Class2.SayHelloTwice, type:
Javascript.Class2 offset: 0x0007 method:System.String SayHelloTwice()
What I need to add references etc for just a dll project type.
2. Second issue I am seeing is that it generates really complex names for
functions and classes how I can make it to generate more user friendly names
Thanks,
Sajjad
-----Original Message-----
From: jscsharp@googlegroups.com [mailto:jscsharp@googlegroups.com] On Behalf
Of zproxy
Sent: Tuesday, September 22, 2009 10:23 PM
To: jscsharp
Subject: Re: Jquery and jsc
Hi Sajjad,
At this time there is not automatic way to generate a stub assemly for
other javascript libraries. This must be done by hand. Would you like
to have an example to show how to get started?
On 22 sept, 02:50, Sajjad Akhter <sajjadakh...@gmail.com> wrote:
> hi,
> I want to write a web app which will be doing alot of stuff in
> javascript, i looked into jsc its cool when i need to do things
> completly writting in c# what if i have prewritten javascript library
> like Jquery?
> Thanks,
> Sajjad