C#winform software realizes one-time compilation, is compatible with cross-platform windows, linux, and mac, and is compatible with Visual Studio native interface Form form development.
C#winform software implements one-time compilation, is compatible with cross-platform windows, linux, and mac, and is compatible with Visual Studio native interface Form form development 1. Background: Microsoft’s .net core development tool, currently, the winform interface software is not intended to support running on the Linux system. If you want C# desktop software to run on the Linux system, it is still troublesome to develop. Microsoft only allows C# console software to run on Linux. 2. Solution: One solution I thought of was to customize the System.Windows.Forms component that encapsulates the software, and encapsulate the interface framework GTK that supports windows and Linux into System.Windows.Forms! This plan has two characteristics: 1. Compatible with native C# form controls, the original C# software does not need to be redeveloped, just replace it with this component and recompile 2. You can use Visual Studio for visual development. There is no need to learn the framework, just reference the DLL 3. Component packaging This System.Windows.Forms is the key component to implement the C# interface. All controls of the Form interface are encapsulated in this component. In the .net core environment, this component is under the framework Microsoft.WindowsDesktop.App.WindownsForms. When the output mode of the development project…