DNX for .NET Framework, .NET Core and Mono

We posted simple DNX concept before, the DNX is .NET Execution Environment. By now I have acknowledged DNX was for cross-platform ASP.NET Web applications, also for cross-platform console applications. But I do not know whether DNX support Windows Form applications or WPF applications because the DNX is still on very early stage, not released formal version yet.

DNX has actually 3 editions:

1: DNX for .NET framework, which only supports Windows system;

2: DNX for .NET core, which can be run on Windows, Linux and OS X systems. The .NET core includes a subset of the .NET Framework.

Due to my personal understanding, comparing .NET core with .NET framework, the difference is just simplified think .NET core is a kind of new “.NET framework” which is supporting Windows, Linux, OS X etc. if a .NET application was working on .NET Framework, it needs to be rebuilt on .NET core.

3: DNX for Mono: Mono supports Window, Linux and OS X, but it was not from Microsoft, it is an open source project which was started very early, so it support .NET very well on different platforms.

Here is a ASP.NET official article about choosing the right .NET for you on the server.

How to disable Progress bar’s animation in .NET

The Windows Forms progress bar control comes with re-draw bar function by default, you will see the drawing process from left to right when you have one or multiple progress bar controls on your screen.

So how to disable the animation since in some cases we do not want to see the re-drawing.

There is no a good solution for it. But there is a simple way to resolve the issue, but just looked wired.

Just put the following code, and then you set the value to progress bar, the animation will gone ! Because the progress bar has a wired feature: when you set a value to it, and –1 right away, the animation will be disappear!

this.progressBar1.Maximum = 101;  
this.progressBar1.Value = 101;
this.progressBar1.Maximum = 100;

ASP.NET Cross-Platform Solutions

ASP.NET applications mainly focused on Windows platform with using IIS web server which installed on Windows platform; However, we want ASP.NET applications to support different platforms such as Windows, Linux and Mac OSX.

We known Mono project already, Mono is the most popular solution which supports ASP.NET application to run Linux and OSX. However, Technology is changing time by time. Let us find more solutions here.

Continue reading

ASP.NET vNext vs ASP.NET 5

ASP.NET 5 is just ASP.NET vNext, ASP.NET formally called ASP.NET vNext.

ASP.NET 5 is a significant redesign of ASP.NET.

ASP.NET 5 is a new open-source and cross-platform framework for building modern cloud-based Web applications using .NET. We built it from the ground up to provide an optimized development framework for apps that are either deployed to the cloud or run on-premises…… You can develop and run your ASP.NET 5 applications cross-platform on Windows, Mac and Linux.

Above content was from here.

WCF is Open Source now

Microsoft announced they open sourced WCF which targets .NET core yesterday.

The main target of opening WCF is for supporting cross platforms, because it is the main target of .NET core also.

Currently the opened WCF project on GitHub is a subset of the full WCF product, this is because due to the .NET Core plan.