Example of using .Net Framework in Javascript

Oct 22, 2009 at 12:14 AM

Hi, is there an example of using the .Net framework in the javascript code, I'm not clear on how that works.

I tried this, and it didn't work,

print(DateTime.Now.ToString());  // this yields an error, but

print(DateTime.Now.ToString);  // this prints nothing

What am I doing wrong?

 

Coordinator
Oct 22, 2009 at 10:04 AM

Hi Dewey,

I have just published a version correcting your example. Jint was not handling static calls to methods and properties. Now it has been corrected as of version 0.8.2. Here are some examples:

var d = System.DateTime.Now;
assert(ToInt32(2009), d.Year);

var d = new System.DateTime(ToInt32(1), ToInt32(1), ToInt32(1));
assert(ToInt32(1), d.Year);

assert(ToInt32(1), System.Convert.ToInt32(1));

You can now convert types to pure CLR object in order to call the correct constructor or method overloads. This are the same names as for the Convert class. Don't forget to specify the full name of the class, including the namespace as there is no using/import notion in JavaScript

Oct 22, 2009 at 6:58 PM

Fantastic!!!

One more question.  If an assembly is loaded into the environment(I believe you had an example), would the types also be available to the javascript?

Coordinator
Oct 23, 2009 at 7:13 AM

If you check the code of the used CachedTypeResolver (ITypeResolver) you'll see that every loaded assembly is used to find types. So if an assembly is loaded, types will be searched inside by default.

Oct 24, 2009 at 12:28 AM

This change doesn't seem to work for me. Whenever I invoke a static method I get an "Object reference not set to an instance of an object." exception in CachedMethodInvoker.Invoke, line "Type type = isStaticCall ? (Type)subject : subject.GetType();". This is occurring because the first parameter "subject" is null. For instance, this exception occurs when executing "var i = ToInt32(1);". Thanks.

Coordinator
Oct 24, 2009 at 6:31 AM

@dpwoos

Can you give me a complete example ? The line you gave is working for me. Moreover, the function ToInt32 should be used only to call CLR methods as the types are important to find the correct overload. I'll had some doc about this part.

Oct 24, 2009 at 3:51 PM

Here is how I produce this error:

1) download Jint-Sources.zip, unzip and open Jint.sln in VS2008.

2) Rebuild solution - 0 error, 19 warnings (see output at bottom)

3) Start Jint Shell

4) at prompt, type: var i = ToInt32(1); and hit enter twice, and get "Object reference not set to an instance of an object.". The same thing happens if I invoke System.Convert.ToInt32. Invoking System.DateTime.Now works fine.

 

Thanks.

______________________________________

 

------ Rebuild All started: Project: Jint, Configuration: Debug Any CPU ------
c:\WINDOWS\Microsoft.NET\Framework\v3.5\Csc.exe /noconfig /nowarn:1701,1702 /errorreport:prompt /warn:4 /define:DEBUG;TRACE /reference:..\Dependencies\Antlr3.Runtime.dll /reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll /reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /debug+ /debug:full /filealign:512 /optimize- /out:obj\Debug\Jint.dll /target:library CachedMethodInvoker.cs CachedReflectionPropertyGetter.cs CachedTypeResolver.cs ExecutionVisitor.cs Expressions\ArrayDeclaration.cs JintException.cs Native\ClrImplDefinition.cs Native\ClrGetterDefinition.cs Native\JsArguments.cs Native\JsScope.cs Native\JsCallFunction.cs Native\JsDateConstructor.cs Native\JsFunctionConstructor.cs Native\JsNumberConstructor.cs Native\JsRegExpConstructor.cs Native\JsStringConstructor.cs Native\JsBooleanConstructor.cs Native\JsArrayConstructor.cs Native\JsDictionaryObject.cs Native\JsNull.cs Native\JsObjectConstructor.cs Native\JsValue.cs Expressions\RegexpExpression.cs Native\CallBackFunction.cs Native\CallProxyFunction.cs Native\JsInstance.cs Native\JsUndefined.cs Native\JsClr.cs Native\JsRegExp.cs Native\JsMathConstructor.cs Native\JsBoolean.cs Native\JsString.cs Native\JsNumber.cs Native\JsGlobal.cs Native\JsArray.cs Native\JsDate.cs Native\JsObject.cs Expressions\JsonExpression.cs Native\ClrFunction.cs Expressions\FunctionExpression.cs Native\JsFunction.cs Native\JsPrototype.cs Expressions\MemberExpression.cs Expressions\NewExpression.cs Expressions\MethodCall.cs IMethodInvoker.cs IPropertyGetter.cs ITypeResolver.cs JintEngine.cs Expressions\BinaryExpression.cs Expressions\BlockStatement.cs Expressions\CaseClause.cs Expressions\AssignmentExpression.cs Expressions\CatchClause.cs Expressions\ContinueStatement.cs Expressions\BreakStatement.cs Expressions\FinallyClause.cs Expressions\Statement.cs Expressions\EmptyStatement.cs Expressions\DoWhileStatement.cs Expressions\ExpressionStatement.cs Expressions\ForEachInStatement.cs Expressions\ForStatement.cs Expressions\FunctionDeclarationStatement.cs Expressions\IfStatement.cs Expressions\Program.cs Expressions\ReturnStatement.cs Expressions\SwitchStatement.cs Expressions\Expression.cs Expressions\Identifier.cs Expressions\Indexer.cs IJintVisitor.cs Expressions\TernaryExpression.cs Expressions\ThrowStatement.cs Expressions\TryStatement.cs Expressions\UnaryExpression.cs Expressions\ValueExpression.cs Expressions\VariableDeclarationStatement.cs Expressions\WhileStatement.cs Number.cs Parser\JavaScriptLexer.cs Parser\JavaScriptParser.cs Properties\AssemblyInfo.cs ReflectionPropertyGetter.cs
C:\SCA\PrjJint1\Jint\Native\JsArray.cs(7,18): warning CS0659: 'Jint.Native.JsArray' overrides Object.Equals(object o) but does not override Object.GetHashCode()
C:\SCA\PrjJint1\Jint\Native\JsValue.cs(7,18): warning CS0659: 'Jint.Native.JsValue' overrides Object.Equals(object o) but does not override Object.GetHashCode()
C:\SCA\PrjJint1\Jint\Native\JsArray.cs(41,29): warning CS0108: 'Jint.Native.JsArray.TYPEOF' hides inherited member 'Jint.Native.JsObject.TYPEOF'. Use the new keyword if hiding was intended.
C:\SCA\PrjJint1\Jint\Native\JsObject.cs(18,29): (Related location)
C:\SCA\PrjJint1\Jint\Native\JsNull.cs(16,29): warning CS0108: 'Jint.Native.JsNull.TYPEOF' hides inherited member 'Jint.Native.JsObject.TYPEOF'. Use the new keyword if hiding was intended.
C:\SCA\PrjJint1\Jint\Native\JsObject.cs(18,29): (Related location)
C:\SCA\PrjJint1\Jint\Native\JsRegExp.cs(31,29): warning CS0108: 'Jint.Native.JsRegExp.TYPEOF' hides inherited member 'Jint.Native.JsObject.TYPEOF'. Use the new keyword if hiding was intended.
C:\SCA\PrjJint1\Jint\Native\JsObject.cs(18,29): (Related location)
C:\SCA\PrjJint1\Jint\Native\JsString.cs(58,29): warning CS0108: 'Jint.Native.JsString.TYPEOF' hides inherited member 'Jint.Native.JsObject.TYPEOF'. Use the new keyword if hiding was intended.
C:\SCA\PrjJint1\Jint\Native\JsObject.cs(18,29): (Related location)
C:\SCA\PrjJint1\Jint\Native\JsClr.cs(38,29): warning CS0108: 'Jint.Native.JsClr.TYPEOF' hides inherited member 'Jint.Native.JsObject.TYPEOF'. Use the new keyword if hiding was intended.
C:\SCA\PrjJint1\Jint\Native\JsObject.cs(18,29): (Related location)
C:\SCA\PrjJint1\Jint\Native\JsDate.cs(31,29): warning CS0108: 'Jint.Native.JsDate.TYPEOF' hides inherited member 'Jint.Native.JsObject.TYPEOF'. Use the new keyword if hiding was intended.
C:\SCA\PrjJint1\Jint\Native\JsObject.cs(18,29): (Related location)
C:\SCA\PrjJint1\Jint\Native\JsBoolean.cs(27,29): warning CS0108: 'Jint.Native.JsBoolean.TYPEOF' hides inherited member 'Jint.Native.JsObject.TYPEOF'. Use the new keyword if hiding was intended.
C:\SCA\PrjJint1\Jint\Native\JsObject.cs(18,29): (Related location)
C:\SCA\PrjJint1\Jint\Native\JsNumber.cs(48,29): warning CS0108: 'Jint.Native.JsNumber.TYPEOF' hides inherited member 'Jint.Native.JsObject.TYPEOF'. Use the new keyword if hiding was intended.
C:\SCA\PrjJint1\Jint\Native\JsObject.cs(18,29): (Related location)
C:\SCA\PrjJint1\Jint\ExecutionVisitor.cs(749,21): warning CS0162: Unreachable code detected
C:\SCA\PrjJint1\Jint\Parser\JavaScriptParser.cs(320,20): warning CS0219: The variable 'EOF1_tree' is assigned but its value is never used
C:\SCA\PrjJint1\Jint\Parser\JavaScriptParser.cs(2375,14): warning CS0219: The variable 'global' is assigned but its value is never used
C:\SCA\PrjJint1\Jint\Parser\JavaScriptParser.cs(2402,21): warning CS0162: Unreachable code detected
C:\SCA\PrjJint1\Jint\Parser\JavaScriptParser.cs(2424,21): warning CS0162: Unreachable code detected
C:\SCA\PrjJint1\Jint\Parser\JavaScriptParser.cs(2446,21): warning CS0162: Unreachable code detected
C:\SCA\PrjJint1\Jint\Parser\JavaScriptParser.cs(4592,20): warning CS0219: The variable 'set123_tree' is assigned but its value is never used
C:\SCA\PrjJint1\Jint\Parser\JavaScriptParser.cs(4593,20): warning CS0219: The variable 'set124_tree' is assigned but its value is never used
C:\SCA\PrjJint1\Jint\Native\JsObject.cs(25,24): warning CS0649: Field 'Jint.Native.JsObject.value' is never assigned to, and will always have its default value null
Compile complete -- 0 errors, 19 warnings
Jint -> C:\SCA\PrjJint1\Jint\bin\Debug\Jint.dll
------ Rebuild All started: Project: Jint.Tests, Configuration: Debug Any CPU ------
c:\WINDOWS\Microsoft.NET\Framework\v3.5\Csc.exe /noconfig /nowarn:1701,1702 /errorreport:prompt /warn:4 /define:DEBUG;TRACE /reference:C:\SCA\PrjJint1\Jint\bin\Debug\Jint.dll /reference:"c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PublicAssemblies\Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll" /reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll /debug+ /debug:full /filealign:512 /optimize- /out:obj\Debug\Jint.Tests.dll /resource:Scripts\Comments.js,Jint.Tests.Scripts.Comments.js /resource:Scripts\Blocks.js,Jint.Tests.Scripts.Blocks.js /resource:Scripts\Boolean.js,Jint.Tests.Scripts.Boolean.js /resource:Scripts\RegExp.js,Jint.Tests.Scripts.RegExp.js /resource:Scripts\Math.js,Jint.Tests.Scripts.Math.js /resource:Scripts\Eval.js,Jint.Tests.Scripts.Eval.js /resource:Scripts\Loops.js,Jint.Tests.Scripts.Loops.js /resource:Scripts\Ternary.js,Jint.Tests.Scripts.Ternary.js /resource:Scripts\Operators.js,Jint.Tests.Scripts.Operators.js /resource:Scripts\Arrays.js,Jint.Tests.Scripts.Arrays.js /resource:Scripts\ChainConstructors.js,Jint.Tests.Scripts.ChainConstructors.js /resource:Scripts\Closures.js,Jint.Tests.Scripts.Closures.js /resource:Scripts\Function.js,Jint.Tests.Scripts.Function.js /resource:Scripts\FunctionAsContructor.js,Jint.Tests.Scripts.FunctionAsContructor.js /resource:Scripts\Json.js,Jint.Tests.Scripts.Json.js /resource:Scripts\PrivateMembers.js,Jint.Tests.Scripts.PrivateMembers.js /resource:Scripts\PrototypeInheritance.js,Jint.Tests.Scripts.PrototypeInheritance.js /resource:Scripts\SimpleClass.js,Jint.Tests.Scripts.SimpleClass.js /resource:Scripts\StaticMethods.js,Jint.Tests.Scripts.StaticMethods.js /resource:Scripts\ThisInDifferentScopes.js,Jint.Tests.Scripts.ThisInDifferentScopes.js /resource:Scripts\typeof.js,Jint.Tests.Scripts.typeof.js /resource:"Scripts\[empty].js","Jint.Tests.Scripts.[empty].js" /resource:Scripts\Number.js,Jint.Tests.Scripts.Number.js /resource:Scripts\Arguments.js,Jint.Tests.Scripts.Arguments.js /resource:Scripts\TryCatch.js,Jint.Tests.Scripts.TryCatch.js /resource:Scripts\Clr.js,Jint.Tests.Scripts.Clr.js /target:library Properties\AssemblyInfo.cs Fixtures.cs
Compile complete -- 0 errors, 0 warnings
Jint.Tests -> C:\SCA\PrjJint1\Jint.Tests\bin\Debug\Jint.Tests.dll
------ Rebuild All started: Project: Jint.Shell, Configuration: Debug Any CPU ------
c:\WINDOWS\Microsoft.NET\Framework\v3.5\Csc.exe /noconfig /nowarn:1701,1702 /errorreport:prompt /warn:4 /define:DEBUG;TRACE /reference:..\Dependencies\Antlr3.Runtime.dll /reference:C:\SCA\PrjJint1\Jint\bin\Debug\Jint.dll /reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll /reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /debug+ /debug:full /filealign:512 /optimize- /out:obj\Debug\jintshell.exe /target:exe Program.cs Properties\AssemblyInfo.cs
C:\SCA\PrjJint1\Jint.Shell\Program.cs(21,79): warning CS0618: 'System.Reflection.Assembly.LoadWithPartialName(string)' is obsolete: 'This method has been deprecated. Please use Assembly.Load() instead. http://go.microsoft.com/fwlink/?linkid=14202'
Compile complete -- 0 errors, 1 warnings
Jint.Shell -> C:\SCA\PrjJint1\Jint.Shell\bin\Debug\jintshell.exe
========== Rebuild All: 3 succeeded, 0 failed, 0 skipped ==========

------ Rebuild All started: Project: Jint, Configuration: Debug Any CPU ------

c:\WINDOWS\Microsoft.NET\Framework\v3.5\Csc.exe /noconfig /nowarn:1701,1702 /errorreport:prompt /warn:4 /define:DEBUG;TRACE /reference:..\Dependencies\Antlr3.Runtime.dll /reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll /reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /debug+ /debug:full /filealign:512 /optimize- /out:obj\Debug\Jint.dll /target:library CachedMethodInvoker.cs CachedReflectionPropertyGetter.cs CachedTypeResolver.cs ExecutionVisitor.cs Expressions\ArrayDeclaration.cs JintException.cs Native\ClrImplDefinition.cs Native\ClrGetterDefinition.cs Native\JsArguments.cs Native\JsScope.cs Native\JsCallFunction.cs Native\JsDateConstructor.cs Native\JsFunctionConstructor.cs Native\JsNumberConstructor.cs Native\JsRegExpConstructor.cs Native\JsStringConstructor.cs Native\JsBooleanConstructor.cs Native\JsArrayConstructor.cs Native\JsDictionaryObject.cs Native\JsNull.cs Native\JsObjectConstructor.cs Native\JsValue.cs Expressions\RegexpExpression.cs Native\CallBackFunction.cs Native\CallProxyFunction.cs Native\JsInstance.cs Native\JsUndefined.cs Native\JsClr.cs Native\JsRegExp.cs Native\JsMathConstructor.cs Native\JsBoolean.cs Native\JsString.cs Native\JsNumber.cs Native\JsGlobal.cs Native\JsArray.cs Native\JsDate.cs Native\JsObject.cs Expressions\JsonExpression.cs Native\ClrFunction.cs Expressions\FunctionExpression.cs Native\JsFunction.cs Native\JsPrototype.cs Expressions\MemberExpression.cs Expressions\NewExpression.cs Expressions\MethodCall.cs IMethodInvoker.cs IPropertyGetter.cs ITypeResolver.cs JintEngine.cs Expressions\BinaryExpression.cs Expressions\BlockStatement.cs Expressions\CaseClause.cs Expressions\AssignmentExpression.cs Expressions\CatchClause.cs Expressions\ContinueStatement.cs Expressions\BreakStatement.cs Expressions\FinallyClause.cs Expressions\Statement.cs Expressions\EmptyStatement.cs Expressions\DoWhileStatement.cs Expressions\ExpressionStatement.cs Expressions\ForEachInStatement.cs Expressions\ForStatement.cs Expressions\FunctionDeclarationStatement.cs Expressions\IfStatement.cs Expressions\Program.cs Expressions\ReturnStatement.cs Expressions\SwitchStatement.cs Expressions\Expression.cs Expressions\Identifier.cs Expressions\Indexer.cs IJintVisitor.cs Expressions\TernaryExpression.cs Expressions\ThrowStatement.cs Expressions\TryStatement.cs Expressions\UnaryExpression.cs Expressions\ValueExpression.cs Expressions\VariableDeclarationStatement.cs Expressions\WhileStatement.cs Number.cs Parser\JavaScriptLexer.cs Parser\JavaScriptParser.cs Properties\AssemblyInfo.cs ReflectionPropertyGetter.cs

C:\SCA\PrjJint1\Jint\Native\JsArray.cs(7,18): warning CS0659: 'Jint.Native.JsArray' overrides Object.Equals(object o) but does not override Object.GetHashCode()

C:\SCA\PrjJint1\Jint\Native\JsValue.cs(7,18): warning CS0659: 'Jint.Native.JsValue' overrides Object.Equals(object o) but does not override Object.GetHashCode()

C:\SCA\PrjJint1\Jint\Native\JsArray.cs(41,29): warning CS0108: 'Jint.Native.JsArray.TYPEOF' hides inherited member 'Jint.Native.JsObject.TYPEOF'. Use the new keyword if hiding was intended.

C:\SCA\PrjJint1\Jint\Native\JsObject.cs(18,29): (Related location)

C:\SCA\PrjJint1\Jint\Native\JsNull.cs(16,29): warning CS0108: 'Jint.Native.JsNull.TYPEOF' hides inherited member 'Jint.Native.JsObject.TYPEOF'. Use the new keyword if hiding was intended.

C:\SCA\PrjJint1\Jint\Native\JsObject.cs(18,29): (Related location)

C:\SCA\PrjJint1\Jint\Native\JsRegExp.cs(31,29): warning CS0108: 'Jint.Native.JsRegExp.TYPEOF' hides inherited member 'Jint.Native.JsObject.TYPEOF'. Use the new keyword if hiding was intended.

C:\SCA\PrjJint1\Jint\Native\JsObject.cs(18,29): (Related location)

C:\SCA\PrjJint1\Jint\Native\JsString.cs(58,29): warning CS0108: 'Jint.Native.JsString.TYPEOF' hides inherited member 'Jint.Native.JsObject.TYPEOF'. Use the new keyword if hiding was intended.

C:\SCA\PrjJint1\Jint\Native\JsObject.cs(18,29): (Related location)

C:\SCA\PrjJint1\Jint\Native\JsClr.cs(38,29): warning CS0108: 'Jint.Native.JsClr.TYPEOF' hides inherited member 'Jint.Native.JsObject.TYPEOF'. Use the new keyword if hiding was intended.

C:\SCA\PrjJint1\Jint\Native\JsObject.cs(18,29): (Related location)

C:\SCA\PrjJint1\Jint\Native\JsDate.cs(31,29): warning CS0108: 'Jint.Native.JsDate.TYPEOF' hides inherited member 'Jint.Native.JsObject.TYPEOF'. Use the new keyword if hiding was intended.

C:\SCA\PrjJint1\Jint\Native\JsObject.cs(18,29): (Related location)

C:\SCA\PrjJint1\Jint\Native\JsBoolean.cs(27,29): warning CS0108: 'Jint.Native.JsBoolean.TYPEOF' hides inherited member 'Jint.Native.JsObject.TYPEOF'. Use the new keyword if hiding was intended.

C:\SCA\PrjJint1\Jint\Native\JsObject.cs(18,29): (Related location)

C:\SCA\PrjJint1\Jint\Native\JsNumber.cs(48,29): warning CS0108: 'Jint.Native.JsNumber.TYPEOF' hides inherited member 'Jint.Native.JsObject.TYPEOF'. Use the new keyword if hiding was intended.

C:\SCA\PrjJint1\Jint\Native\JsObject.cs(18,29): (Related location)

C:\SCA\PrjJint1\Jint\ExecutionVisitor.cs(749,21): warning CS0162: Unreachable code detected

C:\SCA\PrjJint1\Jint\Parser\JavaScriptParser.cs(320,20): warning CS0219: The variable 'EOF1_tree' is assigned but its value is never used

C:\SCA\PrjJint1\Jint\Parser\JavaScriptParser.cs(2375,14): warning CS0219: The variable 'global' is assigned but its value is never used

C:\SCA\PrjJint1\Jint\Parser\JavaScriptParser.cs(2402,21): warning CS0162: Unreachable code detected

C:\SCA\PrjJint1\Jint\Parser\JavaScriptParser.cs(2424,21): warning CS0162: Unreachable code detected

C:\SCA\PrjJint1\Jint\Parser\JavaScriptParser.cs(2446,21): warning CS0162: Unreachable code detected

C:\SCA\PrjJint1\Jint\Parser\JavaScriptParser.cs(4592,20): warning CS0219: The variable 'set123_tree' is assigned but its value is never used

C:\SCA\PrjJint1\Jint\Parser\JavaScriptParser.cs(4593,20): warning CS0219: The variable 'set124_tree' is assigned but its value is never used

C:\SCA\PrjJint1\Jint\Native\JsObject.cs(25,24): warning CS0649: Field 'Jint.Native.JsObject.value' is never assigned to, and will always have its default value null

 

Compile complete -- 0 errors, 19 warnings

Jint -> C:\SCA\PrjJint1\Jint\bin\Debug\Jint.dll

------ Rebuild All started: Project: Jint.Tests, Configuration: Debug Any CPU ------

c:\WINDOWS\Microsoft.NET\Framework\v3.5\Csc.exe /noconfig /nowarn:1701,1702 /errorreport:prompt /warn:4 /define:DEBUG;TRACE /reference:C:\SCA\PrjJint1\Jint\bin\Debug\Jint.dll /reference:"c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\PublicAssemblies\Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll" /reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll /debug+ /debug:full /filealign:512 /optimize- /out:obj\Debug\Jint.Tests.dll /resource:Scripts\Comments.js,Jint.Tests.Scripts.Comments.js /resource:Scripts\Blocks.js,Jint.Tests.Scripts.Blocks.js /resource:Scripts\Boolean.js,Jint.Tests.Scripts.Boolean.js /resource:Scripts\RegExp.js,Jint.Tests.Scripts.RegExp.js /resource:Scripts\Math.js,Jint.Tests.Scripts.Math.js /resource:Scripts\Eval.js,Jint.Tests.Scripts.Eval.js /resource:Scripts\Loops.js,Jint.Tests.Scripts.Loops.js /resource:Scripts\Ternary.js,Jint.Tests.Scripts.Ternary.js /resource:Scripts\Operators.js,Jint.Tests.Scripts.Operators.js /resource:Scripts\Arrays.js,Jint.Tests.Scripts.Arrays.js /resource:Scripts\ChainConstructors.js,Jint.Tests.Scripts.ChainConstructors.js /resource:Scripts\Closures.js,Jint.Tests.Scripts.Closures.js /resource:Scripts\Function.js,Jint.Tests.Scripts.Function.js /resource:Scripts\FunctionAsContructor.js,Jint.Tests.Scripts.FunctionAsContructor.js /resource:Scripts\Json.js,Jint.Tests.Scripts.Json.js /resource:Scripts\PrivateMembers.js,Jint.Tests.Scripts.PrivateMembers.js /resource:Scripts\PrototypeInheritance.js,Jint.Tests.Scripts.PrototypeInheritance.js /resource:Scripts\SimpleClass.js,Jint.Tests.Scripts.SimpleClass.js /resource:Scripts\StaticMethods.js,Jint.Tests.Scripts.StaticMethods.js /resource:Scripts\ThisInDifferentScopes.js,Jint.Tests.Scripts.ThisInDifferentScopes.js /resource:Scripts\typeof.js,Jint.Tests.Scripts.typeof.js /resource:"Scripts\[empty].js","Jint.Tests.Scripts.[empty].js" /resource:Scripts\Number.js,Jint.Tests.Scripts.Number.js /resource:Scripts\Arguments.js,Jint.Tests.Scripts.Arguments.js /resource:Scripts\TryCatch.js,Jint.Tests.Scripts.TryCatch.js /resource:Scripts\Clr.js,Jint.Tests.Scripts.Clr.js /target:library Properties\AssemblyInfo.cs Fixtures.cs

 

Compile complete -- 0 errors, 0 warnings

Jint.Tests -> C:\SCA\PrjJint1\Jint.Tests\bin\Debug\Jint.Tests.dll

------ Rebuild All started: Project: Jint.Shell, Configuration: Debug Any CPU ------

c:\WINDOWS\Microsoft.NET\Framework\v3.5\Csc.exe /noconfig /nowarn:1701,1702 /errorreport:prompt /warn:4 /define:DEBUG;TRACE /reference:..\Dependencies\Antlr3.Runtime.dll /reference:C:\SCA\PrjJint1\Jint\bin\Debug\Jint.dll /reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Data.dll /reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.dll /reference:c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Xml.dll /debug+ /debug:full /filealign:512 /optimize- /out:obj\Debug\jintshell.exe /target:exe Program.cs Properties\AssemblyInfo.cs

C:\SCA\PrjJint1\Jint.Shell\Program.cs(21,79): warning CS0618: 'System.Reflection.Assembly.LoadWithPartialName(string)' is obsolete: 'This method has been deprecated. Please use Assembly.Load() instead. http://go.microsoft.com/fwlink/?linkid=14202'

 

Compile complete -- 0 errors, 1 warnings

Jint.Shell -> C:\SCA\PrjJint1\Jint.Shell\bin\Debug\jintshell.exe

========== Rebuild All: 3 succeeded, 0 failed, 0 skipped ==========