hawkerm / monaco-editor-uwp

A Windows Runtime Component wrapper around the web-based Monaco Editor.
MIT License
152 stars 36 forks source link

What To do After successful build? How To use it in WinForms? #51

Open khalidalmannai opened 4 years ago

khalidalmannai commented 4 years ago

Hello Everyone,

First thank you for this package..

Sorry for my naïve question, but after successful build how to use the component in a windows form.

I tried run button nothing happened and this is the output

========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ========== ========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========

Windows 10

My Visual Studio is: Microsoft Visual Studio Community 2019 Version 16.6.2

Regards,

hez2010 commented 4 years ago

It's a Universal Windows Component and it's designed for UWP, I'm afraid that you may be not able to use it in WinForms for now. Maybe you can use it after WinUI 3.0 released out?

khalidalmannai commented 4 years ago

Got It..

Thank you

hawkerm commented 4 years ago

Thanks for the interest @khalidalmannai, @hez2010 is right this is currently just a UWP component. I'll eventually migrate it to WinUI3 which then can be used in Win32 C# Desktop applications. Since WebView2 should support more environments at that point (which means it could work in WPF/WinForms where WebView2 works as well), I may try and generalize it a bit more as well, but I haven't gotten that far.