Is it possible to write a Cordova plugin for Windows (8.1/10) in C#? Alternatively, can a library component written in C# be wrapped as a Cordova plugin? If I haven't missed anything, MSDN and Apache documentation only show how to use C# for Windows Phone 8 (a JS implementation is expected for "Windows Universal")
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
Yes you can and one cordova windows 10 implementation is already available in github. Here is the link.. All the required documentation is also available..
Cordova-Windows
Yes but there are some requirements. First, your library must be a Windows Runtime Component project. You can reference a winmd or a csproj in your plugin (see https://cordova.apache.org/docs/fr/latest/guide/platforms/win8/plugin.html). If your plugin is valid and correctly loaded in your application at runtime, you can use your C# classes in JavaScript directly (it's just WinJS). It's your responsability to expose a JavaScript wrapper of your C# library in the plugin, but it's not mandatory (just common to maximize code sharing with other platforms implementations of your plugin).