May 22, 2002 - Specifying Assemblies
May 22, 2002|
Tips: May 2002
Yehuda Shiran, Ph.D.
System.Environment.SpecialFolderand it is not defined within the current script, the
jsc.execompiler will look for the required namespace in the following assemblies (
.dllfiles), in this order:
You can avoid any linkages between namespaces and assemblies in two ways. First, you can specify
System.Environment.SpecialFolder.dll System.Environment.dll System.dll
jsc.exeinvocation. Another way is to import a namespace that does not have a corresponding assembly. But now you need to specify the assembly explicitly. You do this with the
/referenceswitch of the
jsc.execompiler. Here is an example:
To learn more about JScript .NET, go to Column 109, JScript .NET, Part III: Classes and Namespaces.
jsc /reference:privatedll.dll myscript.js