Eventually we will be able to do this easily using C#. Hopefully soon. For now you can follow the instruction on this article and start playing with bare bone Web Assembly.