Is it possible to use C# (and C++) in a Javascript Metro app?

microsoft-metro, windows-8

Solution

Yes. You can create a Windows Runtime Component in C# (and C++) and as long as the public types and members exposed by your component are Windows Runtime types, the WinRT projections to JavaScript will allow your HTML/JavaScript app to invoke methods within that component.

Here are a couple of references for more information:

Creating Windows Runtime Components in C# and Visual Basic

Creating Windows Runtime Components in C++

Windows Runtime Components in a .NET World

Problem

Is it possible to use C# and C++ in a JavaScript Metro app? The app is a Javascript/HTML app, but I want to use some libraries that are available in C#.

Original source