How to use open-source. Net and open-source. Net
. NET is a cross-platform development stack. It has a Standard Library called. NET Standard Library, which contains a large number of APIs. This standard library is implemented by various. NET runtime environments:. NET Framework,. NET CoreAndXamarin-flavored Mono. 1:. NET FrameworkIs the. NET Framework that is used by existing developers. It implements. NET Standard Library, that is, any code that only depends on. NET Standard Library can run on. NET Framework. It includes other Windows-specific APIs, such as APIs for Windows desktop development, such as Windows Forms and WPF .. NET Framework is optimized for building Windows desktop applications.
2:. NET CoreIt is a new cross-platform runtime environment optimized for server workloads. It implements. NET Standard Library, that is, any code that uses. NET Standard Library can run on. NET Core. This running environment is suitable for the use of the new Web development stack ASP. NET Core. It is modern and efficient and designed to handle large-scale servers and cloud workloads.
3:Xamarin-flavored MonoIs the runtime environment of Xamarin applications. It implements the. NET Standard Library, that is, any code that relies only on the. NET Standard Library can run on the Xamarin application. It contains other APIs used for iOS, Android, Xamarin. Forms, and Xamarin. Mac. It optimizes the construction of mobile applications on iOS and Android. When talking about the problem of selecting the runtime environment, the selection method should be as follows:
1:. NET Framework is a Windows-centered Framework that provides the best services for Windows developers. If you are building a Windows-centered application, please select it.
2:. NET Core is a cloud Optimization engine, which is cross-platform. It uses the same high-performance JIT compiler, but runs code on all supported operating systems (Windows, Linux, and macOS. It does not have a specific Windows APIs because it is contrary to the cross-platform goal.
3: Mono is a running environment for mobile apps and Apple platforms (Android, iOS, watchOS, and tvOS). It is used for game controllers and Unix desktop applications. What should be used for your new project? It depends on your needs. Windows desktop applications? Please use. NET Framework, just as you have always done before. Server or Web application? Use ASP. NET Core to run on. NET Core. Mobile applications? Use Xamarin. Class Library and NuGet package? Use. NET StandardLibrary.Using a standard library is important for sharing code across all your applications.