Home All Groups Group Topic Archive Search About

integration between Jscript.net and C#

Author
6 Oct 2006 5:13 AM
jeevankodali
Hi

I am trying to write few classes in JScript.Net. I want to use those
classes in a C# project (a dll project) which I already have This C#
dll is used by many processes which are being worked on by many people.
So, the problem I am having here is how to easily integrate the
"jscript.net dll" of the jsript files in the C# dll using Visual
Studio. Since jscript.net is not integraed in Visual Studio (and has
only command line compiler) this is what I tried:

1. Created a c# project and added the jscript files into that project.
2. Added a post build script which compiles all the jscript files using
jsc and copies the dll to one specific folder
3. I added the refrence to this dll in the C# project

now the problem is if I change something in jscript file and recompile
the whole project, the change is not reflected in the C# project(since
c# is keeping a local copy of the dll).

THe only way its working is if I remove the referne and add it back
again. Is there anyway this can be handled automatcially as if I am
working on two c# projects.

Thanks
Jeevan

AddThis Social Bookmark Button