kswoll / WootzJs

C# to Javascript Compiler implemented via Roslyn
MIT License
110 stars 21 forks source link

String format result wrong: FormatPatternString are outputed #39

Open coddoge opened 6 years ago

coddoge commented 6 years ago

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 in Chrome console command-line

samuelGrahame commented 6 years ago

Not sure if this github is still active, if you need csharp to Javascript give bridge.net a try. I use it in production

coddoge commented 6 years ago

Sorry for late reply, and thank you for suggestion! I have looked that, and it seem it's so cool. Before using in production, i will try it in Amateur project.

samuelGrahame commented 6 years ago

if you need any help with bridge just give me a buzz - samuel@intelogy.com.au I have made this library: https://github.com/samuelGrahame/ExpressCraft currently using above library with bridge with our production software. works like a treat.

kswoll commented 6 years ago

Hey guys, I've been following the Blazor project with a lot of energy, and in my opinion, this is the way forward here. I enjoyed playing with WootzJs, but Blazor seems first class, so that's where I'd put my marbles. :)

samuelGrahame commented 6 years ago

Blazor is good and all, but been able to interact with the dom and other javascript is way off from being ready for production.