The Ultimate Sheet on .NET Core, .NET Framework & .NET Standard

The Ultimate Cheat Sheet On .NET Core, .NET Framework, and .NET Standard

Author image By Manish Patel  |  Tuesday, December 29, 2020 04:09 PM  |  5 min read  |   108

The Ultimate Cheat Sheet on .NET Core, .NET Framework, and .NET Standard

“.Net Standard is an API specification for a given version while .Net core is a framework that is optimized for building cloud, console, Asp.Net Core, and UWP applications. It’s nothing but an implementation of .Net standard for base class libraries.”

So, before digging deep inside what sets these three TMF’s apart, let’s get the basic concept cleared.

Whenever you create any C# project, you’ll be popped up with a .csproj file, which is nothing but your C# project file. Basically, these files have two versions:

1. Old format: It’s what you get by default with .Net framework projects.
2. New format: (SDK-style) – It’s something you get with modern .Net core projects.

The difference between these two is quite easy. Both are XML-based formats that have a “project” root element. In the SDK-style, .csjproj file, the “project” element has an SDK attribute and the old format doesn’t have that SDK attribute. Sounds pretty easy, isn’t it?

Though developers are working on the .net framework for ages, the difference between .net core and .net framework and .net standard still creates confusion. To eliminate those misconceptions, this blog highlights what are the basic differences between these terms and when we should use one over the other.
So, let’s get started.

What is the .Net framework?

What is the .Net framework?

.Net framework is used to build and manage web and windows-based applications. The old framework created by Microsoft leverages end-to-end solutions to create windows app typically knows and Win Forms and web applications like ASP.Net MVC app or ASP.Net.

What can be done with the .Net framework?

  • Create and build a Windows application
  • Being language-independent, it can use multiple languages.
  • Build an app with good performance and highly reliable.
  • Build web forms using Asp.Net, Rest API using Web API, and enterprise app using ASP.Net MVC.

What is .Net core?

Created by Microsoft, .Net Core is a cross-platform open-source framework used to build an app that can run on any platform. It’s a new framework written from scratch to build cross-platform apps that can work on any platform like Linux, Windows, or Mac. Earlier, the .Net framework was language independent but with the introduction of the .Net core, it is language and platform-independent.

What can be done with .Net core?

  • Build cross-platform applications
  • Deploy an application to Docker container
  • Make use of Microservices
  • Build and create a scalable, robust, and performance-driven system.
  • Build Asp.Net core, UMP, Razor page, Mobile native app, and Blazor application.

Case Study: Understanding the architecture of the .Net framework and .Net core

Case Study: Understanding the architecture of the .Net framework and .Net core

So, before going deep inside the .Net standard, let’s understand the architecture of the .Net framework and .Net core.

The above image states that each one has its Base class library.

So, what’s the Problem?

For instance: Let’s assume that we build an app using the .Net framework and use its library for shared code. Later on, if we want to build an app in .Net core and try to re-use the same code in the library created in the .Net framework, can we do that?

The answer is NO. We cannot use the BSL in the .Net core due to compatibility issues. The libraries of the .Net framework only run in the .Net framework-based app and the .Net core libraries only run in the .Net core-based app.

What is the Solution?

The solution is the .Net Standard framework. It’s a specification of the set of APIs which is compatible with any .Net platform. If we create the BCL using .Net Standard, then it will run with any .Net Runtimes.

So, if you want to build an app and keep your shared code in BCL, you should use the .Net standard due to its portability with the .Net framework and ASP.NET Development Company

How .Net standard is backward compatible?

Well, the .Net standard consists of a set of APIs such as a system. data, system. collections and more. So, if a newer version of a .Net standard is released, it comes along with all the older versions of API along with the addition of some new ones. It simply means that the newer version of the .Net standard consists of all sets of APIs from beginning till the end and so a higher .Net standard version means more API availability.

As far as compatibility with another framework is concerned, you’ll find that the .Net standard supports a wide range of frameworks. You can check out the updated list of the framework support here.

This is how the .Net standard is backward compatible.

The major difference between .Net core, .Net framework, and .Net standard

. NET Standard

  • The major difference between these three platforms is that the .Net standard is a specification while the rest two are implementations.
  • .Net standard specifies a set of API’s that is suitable for implementation for all .Net implementation
  • It only creates class library-type projects.

.NET Core and .NET Framework

  • Unlike .Net implementation, .Net core and .Net framework are just .Net implementations
  • Both the framework comprises the base class library.
  • Both frameworks support multiple project type creation.
  • These frameworks have a runtime engine that ensures the timely execution of the application.

When we should use one over the other?

Let’s discuss the points that need to be taken care of while choosing the target platform and its versions.

When you should choose .Net core?

  • If you’re willing to build cross-platform applications
  • To build scalable and high-performing systems
  • For Microservice Development
  • we want to use Docker containers

When you should choose the .Net framework?

  • When your target application development is Windows-based.
  •  the app uses third-party packages that aren’t supported by .Net core
  • When the app uses .Net technologies that are not available for .Net core.

When .Net standard should be your development choice?

In case you want to share the common code across different .Net implementations, the .Net standard should be your first and foremost choice.

So, once you choose the right platform and project type for your app, the next step would be to use the correct version. Let’s assume that if you want to share the common code across platforms then the .Net class library would be your choice. In such a case, choosing the correct version would be a bit difficult. The Microsoft version table will guide you to choose the best version.

Related: Benefits of Migrating Asp.Net Application to Asp.Net Core

Conclusion

I hope the above blog will help you to identify the difference between these three platforms and will guide you to choose the best as per your business requirements. Though multiple factors need to be considered while choosing the target platform and right version, an experienced ASP.NET MVC Development Company can help you in the process and guide you to make the right choice as per your business goals. Hire Asp.Net MVC developer from a leading ASP.Net development company like Concetto Labs and get the best solution developed at competitive rates.

Get in touch with our experts to discuss your project.

 

The Ultimate Cheat Sheet On .NET Core, .NET Framework, and .NET Standard

Contact Us

 

 


Author image

Manish Patel

Manish Patel is a Co-Founder of Concetto Labs, a leading mobile app development company specialized in android and iOS app development. We provide a one-stop solution for all IT related services.

Why Our Client Love Us?

  • Fast kick-off
  • Agile Ready
  • 98% Client Retention
  • 360-Degree solutions

Our integrity and process focuses largely on providing every customer the best recommendations for their respective business. Our clients become recurring customers because we always go beyond their expectations to deliver the best solutions.

Get In Touch
Mr. Sieva Savko
Customer for over 4 years Mr. Sieva Savko Norway

Concetto Labs have provided us with a tremendous amount of help. Their competence in various IT fields led to a positive outcome while facing different challenges. A lot of value was given by their helpful professional staff. To describe this company in three words: effectiveness, collaboration, trust. I would also like to personally thank Mr. Tejas Patel for his positive, friendly, and highly competent approach. The all-around support provided by him made every task at hand a no-brainer.

Miss. Caroline Jack
Customer for over 4 years Miss. Caroline Jack South Africa

It has been an absolute pleasure working with the Concetto Labs team! We have worked together on a few projects now, all of which have been successful. You can rely on good communication and response times from these guys. And they go above and beyond to ensure that the result is achieved. Because of their great service, they have become an integral part of our business and we will continue to use them going forward.

Mr. Richard Bartlett
Customer for over 3 years Mr. Richard Bartlett United States

Concetto Labs is a group of incredibly talented individuals. They are very responsive and communicate with you each and every step of the process. I worked with Manish Patel throughout the entire process and must say that I have never conducted business with a more honest and professional individual. Together with his team, Manish created www.travcentiverewards.com exactly how we envisioned it to be. Thanks for all of your hard work.

Mr. Conrad Abraham
Customer for over 2 years Mr. Conrad Abraham United States

Concetto Labs team is my go-to for any simple or complex development projects. They have risen to the challenge. Great project management, communication, and super quick turnaround. I’ve done multiple projects with them and don’t plan on changing that.

Mr. Edward Chin
Customer for over 4 years Mr. Edward Chin Canada

Concetto Labs was able to bring my complex idea to life. Throughout the project, Concetto Labs maintained constant communications and was always professional - considering I had no experience in what I wanted to create their welcoming attitude, patience, and knowledge in the field created the perfect environment to work in. I was so impressed with their work that I've kept them on board as my go-to experts. Thanks for the worthwhile experience and the breathtaking product.

Karuna Govind
Karuna Govind CTO & Co Founder (Coupay) London, UK

We started working with Concettolabs due to the influx of work on mobile (Flutter) and frontend (React.js). It's been fantastic working with them. Good, consistent communication and good quality of work means they may be our first choice for many projects to come.

Arunabha Choudhury
Arunabha Choudhury Director (Fuzzann Technologies Private Limited) India

We are a healthcare IT company and wanted to build a Mobile Application for both Android and IOS using Flutter. The Concetto Lab team has been very patient with our project requirements and made sure all our queries are answered. It was a great show of professionalism and customer relationship. Even during the project, the team was very accommodating of all the changes we requested. The project was delivered successfully and we deployed the app in the Android Play Store. Overall, the entire process has been very transparent and the team was able to deliver exactly what we had envisioned the project outcome to look like.

GlobalClients
Good Firms Clutch App Futura Microsoft Associate Mobile App Top Developers Gesia
Close
Are you enjoying reading what you see?

Feel like discussing more about this with our Sales Experts? Click on Create Similar Button.