locked
Can we use or reference C# library project in VC++ or VB or JavaScript Metro App project RRS feed

  • Question

  • Hi,

    I have to develop a library project for Windows 8 Metro App, which further need to be used with a Windows 8 Metro project developed on any of the language i.e JavaScript or VB or VC++.

    So, my question is, Can we use or reference C# library project in VC++ or VB or JavaScript  Metro App project?
    Please reply me ?



    Regards, Rahul Jaiswal

    Thursday, March 7, 2013 8:51 AM

Answers

All replies

  • The different strategies are explained in great detail in: .NET Framework Support for Windows Store Apps and Windows Runtime
    When starting anew, consider in particular developing "Windows Runtime Components" to be used by any programming language that supports the Windows Runtime. You can use your component in Windows Store apps with C++, JavaScript, Visual Basic, or C#.


    Thursday, March 7, 2013 9:43 AM
  • http://www.dotnetfunda.com/articles/article2094-consume-csharp-code-from-winjs-in-metro-style-apps-day-4.aspx
    Thursday, March 7, 2013 1:18 PM
  • Hi ForInfo,

    Can we also design user controls in Windows Runtime Component?


    Regards, Rahul Jaiswal

    Friday, March 8, 2013 5:16 AM
  • You can but must take the constraints(*) of WindowsRuntimeComponent projects into account: a UC will be created as a 'sealed' class. Experiment by creating a solution with a VB main project to invoke a C# UC in a WRC project.

    (*) documented in the referenced link above

    Friday, March 8, 2013 7:56 AM