How to Port Desktop Applications to .NET Core 3.0

How to Port Desktop Applications to .NET Core 3.0

How to Port Desktop Applications to .NET Core 3.0. With every subsequent release, .NET Core continues to improve with greater levels performance, security and new features that help enhance developer workflow.

How to Port Desktop Applications to .NET Core 3.0. With every subsequent release, .NET Core continues to improve with greater levels performance, security and new features that help enhance developer workflow.

In .NET Core 3.0, developers will see tons of improvements around our capabilities to build Cloud, Web, IoT, and Machine Learning applications. One of the biggest enhancements will also be support for Windows desktop applications (Windows only). In this episode, our friends Scott Hunter (@coolcsh) and Olia Gavrysh (@oliagavrysh) take over the show to provide some insight into what will be coming in .NET Core 3.0. We’ll see what it takes to port a desktop application to .NET Core and make use of the Windows Compatibility Pack. Our friends also give us a peek into working with Razor Components and ML .NET.

01:00 - Major themes of .NET Core

03:19 - Desktop enhancements for .NET Core

05:01 - Benefits of desktop development on .NET Core

07:56 - Migrating a desktop application to .NET Core

09:12 - Demo 10:09 - Upgrading to the new MSBuild project style

11:38 - Controlling Assembly Info generation

13:06 - .NET standard and the Windows Compatibility Pack

19:48 - Developing with the existing designer

21:03 - ASP.NET Core Razor Components

26:00 - Machine Learning support with ML.NET

Useful Links

What’s new in .NET Core 3.0 ☞ https://docs.microsoft.com/en-us/dotnet/core/whats-new/dotnet-core-3-0?WT.mc_id=docs-channel9-cephilli

.NET Core 3 and support for Windows Desktop applications ☞ https://devblogs.microsoft.com/dotnet/net-core-3-and-support-for-windows-desktop-applications/?WT.mc_id=docs-channel9-cephilli

What’s coming in .NET Core 3.0 ☞ https://msdn.microsoft.com/en-us/magazine/mt848631.aspx?WT.mc_id=docs-channel9-cephilli

Learn More

The Complete ASP.NET MVC 5 Course

Build a Real-world App with ASP.NET Core and Angular 2 (4+)

Build an app with ASPNET Core and Angular from scratch

Angular and .NET Core

WPF and WinForms Will Run on .NET Core 3

MVC.Net Web Application Development Services| MVC.Net Expertise | Hire MVC.Net Developers

CMARIX is among leading MVC.Net web application Development Services. We have the inhouse team of MVC.Net expertise to build scalable, standards-based MVC architecture enterprise applications as per your business needs.

CMARIX is among leading MVC.Net web application Development Services. We have the inhouse team of MVC.Net expertise to build scalable, standards-based MVC architecture enterprise applications as per your business needs.

The Life-Cycle of an ASP.NET Application In Web Development

If you are a beginner in ASP.NET, You Should understand the life-cycle of an ASP.NET Application In web development.

Whenever a user tries to access a particular page or when a page is requested by the user from the browser, the request goes through a series of steps and numerous processes run under the hood in the background, in order to produce the output or send the response back to the client. 

The time period and the processes that run between the request and response of a page is called the "Page Life Cycle".

Request:- Start of the life cycle (sent by the user).

Response:- End of the life cycle (sent by the server).

The application life cycle has the following stages to put them into brief:-

  • User makes a request for accessing application resource, a page. Browser sends this request to the web server.
  • A unified pipeline receives the first request and the following events take place:
  • An object of the class ApplicationManager is created.
  • An object of the class HostingEnvironment is created to provide information regarding the resources.
  • Top level items in the application are compiled.
  • Response objects are created. The application objects such as HttpContext, HttpRequest and HttpResponse are created and initialized.
  • An instance of the HttpApplication object is created and assigned to the request.
  • The request is processed by the HttpApplication

The life-cycle of an ASP.NET page

Whenever someone requests a page, it gets loaded into the server memory, processed, and sent back to the browser. It then gets unloaded from the memory. During each of these steps, methods and events are available, and there is a chance that it could be overridden according to the needs of the application. At the same time, one can write their own code to override the default code.

The Page class engineers a hierarchical tree of all the controls on the page. Every single component on the page, except the directives, becomes a part of this control tree. You can see the control tree by adding trace= "true" to the page directive.

What are the events that occur in ASP.NET page life-cycle

During each stage of the page life cycle, the page raises some events, which could be coded. Talking about event handler, it is a function or subroutine, bound to the event, using declarative attributes such as Onclick or handle.

PreInit - This is the first event in the page life cycle. It checks the IsPostBack property and establishes whether the page is a postback. It helps in setting up the themes and master pages, creates dynamic controls, and gets and sets profile property values. This particular event can be handled by overloading the OnPreInit method or creating a Page_PreInit handler.

Init - Init event kickstarts the control property and the control tree gets built. The event can be handled by overloading the OnInit method or creating a Page_Init handler.

InitComplete - InitComplete event enables tracking of view state. Each and every controls turn on view-state tracking.

LoadViewState - LoadViewState event allows loading view state information straight into the controls.

LoadPostData - At the time of this phase, the contents of all the input fields are defined with the <form> tag are processed.

PreLoad - The PreLoad event unfolds right before the postback data is loaded in the controls. This event can easily be handled by overloading the OnPreLoad method or creating a Page_PreLoad handler.

Load - This event is raised for the page first and after that, recursively for all the child controls. The controls in the control tree are created. One can handle this event by overloading the OnLoad method or creating a Page_Load handler.

Conclusion

ASP.NET has a long lasting future. Most of the web development today is done on ASP.NET pages. Today you can easily hire ASP.NET developers and start building your dream website today.

DevOps For ASP.NET Developers

DevOps is the union of people, process, and products to enable continuous delivery of value to our end users. Azure DevOps is everything you need to turn an idea into a working piece of software.


Abel and Jeremy introduce us the benefits of DevOps. They give us a high level overview of how to implement some DevOps best practices using Azure DevOps.

Abel and Jeremy explain the difference between these two options and show how we can get started with Azure Repos. They will walk us through creating branches, adding policies, and also integrating with GitHub.

Thanks for reading ❤

If you liked this post, share it with all of your programming buddies!

Follow me on Facebook | Twitter

Learn More

The Complete ASP.NET MVC 5 Course

Build a Real-world App with ASP.NET Core and Angular 2 (4+)

Build an app with ASPNET Core and Angular from scratch

Introduction to ASP.NET Core 2.2

Build a REST API with ASP.NET Core 2.2

Build amazing web apps with ASP.NET Core 3.0

Angular and .NET Core

Building Web App using ASP.NET Web API Angular 7 and SQL Server