Beta 12.5 of C#/XAML for HTML5 released

JS-Support @Userware
Site Admin
Posts: 1142
Joined: Tue Apr 08, 2014 3:42 pm

Beta 12.5 of C#/XAML for HTML5 released

Postby JS-Support @Userware » Wed Nov 08, 2017 9:33 am

Dear CSHTML5 users,

We are pleased to inform you that the Beta 12.5 of C#/XAML for HTML5 - the extension for Visual Studio that lets you build cross-platform HTML5 apps in standard C# and XAML - is available for download!

(25.61 MiB) Downloaded 548 times

Learn More about C#/XAML for HTML5.

Here is what's new (since Beta 12.4):

  • Ability to generate HTML/JS files during the build process instead of the Simulator.
    This feature is documented at:

  • Removed the requirement to have Visual Studio installed. This makes it possible to compile projects using the command line "Msbuild.exe MyProjectName.csproj" after installing the Msbuild tools. The stand-alone Msbuild tools can be downloaded from (scroll down to "Other Tools and Frameworks" and choose "Build Tools for Visual Studio 2017").

  • Added the class WebSocket in "CSHTML5.Native.JavaScript.WebSockets"
  • XContainer.Descendants() and XContainer.Descendants(XName name)
  • XContainer.FirstNode
  • XElement.Value
  • Added support for XAttribute explicit operators
  • Added public setter for XElement.Name
  • Added the constructor public XElement(XName name, params object[] content)
  • Added the equality and inequality operators in XName and XContainer
  • Added explicit operators in XElement for nullable types
  • Improved DataContractSerializer (added support for more value types and for value type arrays + fixed issue with "double" serialization + fixed deserialization of empty strings and empty arrays + more...)
  • Fixed the WCF/DataContractSerializer error when running in the browser that said that "DebuggerBrowsableAttribute" was missing
  • Fixed exception when calling XName.Equals(null)
  • Fixed issue where a coerced value did not raise the "property changed" event. The issue could be reproduced by using C# to add a NumericUpDown with a given non-zero Value to the visual tree after the tree was loaded: the value was not rendered.
  • MessageBox.Show now correctly releases the pointer capture
  • Fixed a RepeatButton issue that caused an infinite loop in the NumericUpDown control

    Note: with the new WCF stack recently introduced, you can now remove the [XmlSerializerFormat] attribute that is located in the service class (on the server-side) (and don't forget to "update the service reference" in the CSHTML5 app) and benefit from faster application loading, faster WCF, smaller WCF-related output code, and improved compatibility.

Here is a small sample WCF project to test the new WCF stack:
(65.96 KiB) Downloaded 484 times

We are also working on many other features and we will release them as soon as they are ready.

You may also be interested to read:

Notes about installation:
  • Before installing this update, it is recommended that you close all the open instances of Visual Studio.
  • If for some reason you need to revert to the previous Beta, simply uninstall this one (from the Control Panel) and reinstall the previous Beta.

We hope you will enjoy this build! If you find any issues, please post them on the forums or send an email to

Thank you.

Posts: 12
Joined: Thu Sep 29, 2016 7:18 am

Re: New Beta 12.5 released! [Download]

Postby Fuzioncode » Thu Nov 09, 2017 3:36 pm

I'm having the same problem with the above version when running the 12_2 WCF example on line 74 of the MainPage.xaml.cs file when trying to add a ToDo in the emulator and inside of chrome:

at System.Net.WebClient.UploadDataInternal(Uri address, String method, Byte[] data, WebRequest& request)
at System.Net.WebClient.UploadString(Uri address, String method, String data)
at System.INTERNAL_WebRequestHelper_SimulatorOnly.MakeRequest_CSharpVersion(Uri address, Dictionary`2 headers, String body)
at System.ServiceModel.CSHTML5_ClientBase`1.WebMethodsCaller.CallWebMethod(String methodName, Type interfaceType, Type methodReturnType, Dictionary`2 originalRequestObject)
at System.ServiceModel.INTERNAL_WorkAroundIssueWithJSILAndDynamicUnderVs2015.CallWebMethod[RETURN_TYPE,INTERFACE_TYPE](CSHTML5_ClientBase`1 clientBase, String methodName, Dictionary`2 requestParameters)
at System.ServiceModel.INTERNAL_WorkAroundIssueWithJSILAndDynamicUnderVs2015.CallWebMethod_WithoutReturnValue[INTERFACE_TYPE](CSHTML5_ClientBase`1 clientBase, String methodName, Dictionary`2 requestParameters)
at TestCshtml5WCF.ServiceReference1.Service1Client.AddOrUpdateToDo(ToDoItem toDoItem) in C:\Users\wjohnson\Downloads\TestCshtml5WCF_for_CSHTML5_Beta12_2\TestCshtml5WCF\TestCshtml5WCF\obj\Debug\Service References\ServiceReference1\Reference.g.cs:line 319
at TestCshtml5WCF.MainPage.ButtonAddToDo_Click(Object sender, RoutedEventArgs e) in C:\Users\wjohnson\Downloads\TestCshtml5WCF_for_CSHTML5_Beta12_2\TestCshtml5WCF\TestCshtml5WCF\MainPage.xaml.cs:line 55
at Windows.UI.Xaml.Controls.Primitives.ButtonBase.OnClick()
at Windows.UI.Xaml.Controls.Primitives.ButtonBase.OnPointerReleased(PointerRoutedEventArgs eventArgs)
at Windows.UI.Xaml.UIElement.OnPointerReleased(Object e)
at CallSite.Target(Closure , CallSite , Action`1 , Object )
at DotNetForHtml5.Core.INTERNAL_EventManager`2.OnEvent(Object e)
at DotNetForHtml5.Core.INTERNAL_EventManager`2.<StartListeningToDomEventsIfNotAlreadyListening>b__7(Object e)
at DotNetForHtml5.Core.INTERNAL_EventsHelper.<>c__DisplayClass1.<AttachToDomEvents>b__0(Object e)
at CallSite.Target(Closure , CallSite , Action`1 , Object )
at DotNetForHtml5.Core.HtmlEventProxy.<>c__DisplayClass4.<.ctor>b__2(Object s, EventArgsWithJSEventObject e)
at DotNetForHtml5.Core.HtmlEventProxy.<>c__DisplayClassa.<OnEvent>b__9()

JS-Support @Userware
Site Admin
Posts: 1142
Joined: Tue Apr 08, 2014 3:42 pm

Re: New Beta 12.5 released! [Download]

Postby JS-Support @Userware » Fri Nov 10, 2017 4:48 am

@Fuzioncode: Thanks for the information. We are still not able to reproduce the issue but we are trying on more machines. By the way, when running in the Chrome browser, after the error appears, can you please send us the content of the browser Console window? (you can press F12 to access the developer tools and the Console output). Thanks!

Posts: 12
Joined: Thu Sep 29, 2016 7:18 am

Re: New Beta 12.5 released! [Download]

Postby Fuzioncode » Sat Nov 18, 2017 11:07 am

Sure. Log attached with what is shown on the Console when I load the 12_2 WCF example and then try to add a To Do (never works and has two errors).
(3.46 KiB) Downloaded 518 times

JS-Support @Userware
Site Admin
Posts: 1142
Joined: Tue Apr 08, 2014 3:42 pm

Re: New Beta 12.5 released! [Download]

Postby JS-Support @Userware » Tue Nov 21, 2017 1:12 am

@Fuzioncode: Thanks a lot for providing the log. It was critical to understand the issue. We finally managed to reproduce it: it only happened when the server Time Zone was negative (in your case: GMT minus 7). We did not see it before because we are not in the same time zone, sorry for the delay. We are going to fix it right away. Please expect it to be fixed in Beta 12.6, to be released in a few days. Thank you. Regards, JS-Support

Return to “Pre-Releases, Downloads and Announcements”

Who is online

Users browsing this forum: No registered users and 2 guests