Can I use old C # libraries with WinJS?

I have some old C # -libraries. Can I use them in a browser application? Can I use them with a JavaScript object, for example?

thank

+5
source share
2 answers

You can probably do this, but you will need some work.

To use the library, create a project whose output type is a "WinMD file" (either a new one or modify your existing library). In this project, all public types and their non-private members must adhere to some WinRT rules.

For instance:

  • Classes
  • must be sealed (with exceptions for GUI controls).
  • ,
+3

, . WinJS WinRT, " " () . , "" # , JavaScript WinJS.

+1

All Articles