WootzJs
WootzJs copied to clipboard
C# to Javascript Compiler implemented via Roslyn
Trying to run it I get a null reference exception. In WootzJs.Compiler.Context.UpdateContext(245) SpecialFunctions = compilation.FindType("System.Runtime.WootzJs.SpecialFunctions"); -> returns null consequently crashes at WootzJs.Compiler.RoslynExtensions(428): var candidates = type.GetMembers(name).OfType().ToArray(); -> type is null...
Code: `System.Console.WriteLine$2("{0:yyyy-MM-dd HH:mm:ss}",[System.DateTime.get_Now()])` Resuit: `{0:yyyy-MM-dd HH:mm:ss}2018-03-29 09:41:45` expected: `2018-03-29 09:41:45` without format string Code: `System.Console.WriteLine$2("{0:yyyy-MM-dd HH:mm:ss},{1}",[System.DateTime.get_Now(),0])` Result: `{0:yyyy-MM-dd HH:mm:ss},{1}2018-03-29 09:43:39,0` expected: `2018-03-29 09:43:39,0` without format string build in vs2017. Run...
Note that this branch starts from the no-build-bat (another pull request) because that was a necessary dependency. The only actual change on this branch is the addition of WootzJs.Compiler.nuspec. This...
I wanted to make the build process a bit more automatable. We're trying to build this via continuous integration so we want it to reliably build every time. I initially...
We have to be able to compile the same library for C# and JavaScript. That means being able to conditionally use the real mscorlib, or the JS one. Adding this...
This was just a fix to make the compiler less sensitive to whether you input a folder with or without a trailing/leading slash. I fixed this because I ran into...
This pull request just contains additions/fixes to mscorlib: - .NET AddMonths and JavaScript AddMonths was working differently. Made the JavaScript one work the same as .NET, and wrote tests to...
Hi WootzJs is briliant tool, however a bit of lacking on documentation. Could you please shed some light on the MVC project? Couple of sentences where to start and what...
For example consider this ``` csharp public interface IHandle { void Handle(TMessage message); } ``` Foo implements `IHandle` This returns false `System.Console.WriteLine(foo is IHandle);` Running this in the standard CLR...
Hi. I finally got time to get wootzjs to build. Very cool. I'm trying to write a export class for KnockoutJS. This my my code sofar ``` csharp [Js(Export =...