Table of Contents

.NET (C# & VB.Net)

The .NET ecosystem has bifurcated into two flavors:

WinForms applications can be run on Linux panel PCs like the ComfilePi using one of the following configurations:

  1. Using .NET Framework 4, with the application running on the Mono runtime.
  2. Using .NET 5+ and a .NET port of Mono WinForms like our ComfileTech.WinForms library.

In general, it is recommended to use the latest version of .NET unless you have a compelling reason not to.

When to Choose .NET 5+

Using .NET on the ComfilePi

You might choose to use .NET under the following scenarios:

One of the best ways to make your application portable across all platforms is to use Blazor. If you can isolate your UI into a single .NET assembly, you can not only display your UI remotely in a web browser, but you can also host your UI in a WebView on any platform using Blazor Hybrid. For Blazor Hybrid applications on Linux, consider using the open-source BlazorWebView.

NOTE: Maui does not currently support Linux.

Advantages

Disadvantages

When to Choose .NET Framework 4

Using .NET Framework on the ComfilePi

You might choose to use the .NET Framework 4 under the following scenarios:

Advantages

Disadvantages

Targeting Both .NET 5+ and .NET Framework 4

If you need to develop a library for use in both the .NET Framework 4 and .NET 5+, use .NET Standard 2.0.

Note that by targeting .NET Standard, you will likely be limited to just creating utility libraries (e.g. Modbus communication, GPIO, I2C, Serial Communication, TCP/IP communication, etc.), but that can still be very helpful in maximizing your solution's portability.

Technical Support Policy

COMFILE Technology does not provide technical support for Visual Studio and .NET Technologies. Please contact Microsoft directly for support for their products and technologies.

ComfilePi - Industrial Raspberry Pi Panel PC