{"id":6594,"date":"2021-05-11T06:31:48","date_gmt":"2021-05-11T06:31:48","guid":{"rendered":"https:\/\/ded9.com\/?p=6594"},"modified":"2025-11-11T12:59:33","modified_gmt":"2025-11-11T12:59:33","slug":"introduction-to-net-programming-and-the-difference-with-net-core","status":"publish","type":"post","link":"https:\/\/ded9.com\/de\/introduction-to-net-programming-and-the-difference-with-net-core\/","title":{"rendered":"Introduction to .NET Programming and the Difference with .NET Core"},"content":{"rendered":"<p><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">.NET is a free and open-source development framework for developing many applications. Join us to learn more about this Framework. In this article, you will learn about. This Framework and its architecture, learn about the differences between .NET CORE and .NET Framework, and learn when to use them.<\/span><\/span><\/p>\n<h2><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">The birth of .NET<\/span><\/span><\/h2>\n<p><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">It was first published in 2002 with Microsoft&#8217;s announcement of a new language called #C. The original goal was to develop software applications on the Windows platform, but over time, Microsoft began to focus on frameworks beyond Windows, and today, it is used to program other areas such as the web, mobile, and so on.<\/span><\/span><\/p>\n<h3><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">.NET Types: .NET Differences. And .NET Core.<\/span><\/span><\/h3>\n<p><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">It is presented in three comprehensive categories:<\/span><\/span><\/p>\n<ul>\n<li><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">.Net <a href=\"https:\/\/ded9.com\/best-python-frameworks-in-2025\/\">Framework<\/a><\/span><\/span><\/li>\n<li><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">.Net Core<\/span><\/span><\/li>\n<li><a href=\"https:\/\/en.wikipedia.org\/wiki\/Xamarin\" target=\"_blank\" rel=\"noopener\"><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\"> Xamarin<\/span><\/span><\/a><\/li>\n<\/ul>\n<h3><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">.NET Framework<\/span><\/span><\/h3>\n<p><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">This is the original release, released under the name it, which only supports Windows-based devices. Windows Forms and WPF are used to build applications in the desktop environment, but ASP.NET, which is very common in the industry today, is used to design dynamic websites and web applications. In fact, existence (CLR) gives developers the opportunity to write ASP.NET code using different .NET languages, which we&#8217;ll talk about later.<\/span><\/span><\/p>\n<h3><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">.Net Core<\/span><\/span><\/h3>\n<p><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">It is a restructuring of the previous Framework, except that developers can use it in Linux and OS X to create applications that are not necessarily related to the Windows family. This new system seeks to conquer the cloud in addition to .NET Core. Not only is it multi-platform, but different versions can be installed side-by-side on one device. NET Core includes ASP.NET Core and Universal Windows Platform (UWP).<\/span><\/span><\/p>\n<h3><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">Xamarin<\/span><\/span><\/h3>\n<p><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">Nowadays, if you want to build an application using this Framework. Developing for mobile (Android, Windows Phone, and iOS) will be the choice of many Xamarin developers.<\/span><\/span><\/p>\n<h3><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">.Net Standard<\/span><\/span><\/h3>\n<p><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">2016 was a fruitful year for developers. This year, in addition to introducing Xamarin and .NET CORE, a comprehensive library was introduced to combine the above three frameworks so that people can use a basic class library instead of mastering three different libraries. This is the integration step for the Net Standard. So, it is called to create a higher ecosystem and compatibility in the reuse of components in different operating systems.<\/span><\/span><\/p>\n<h3><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">.NET architecture<\/span><\/span><\/h3>\n<p><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">The .NET Framework architecture is based on the following three main components:<\/span><\/span><\/p>\n<ul>\n<li><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">Common Language Runtime<\/span><\/span><\/li>\n<li><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">Class Libraries<\/span><\/span><\/li>\n<li><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">Language Programming Languages<\/span><\/span><\/li>\n<\/ul>\n<h3><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">What is CLR?<\/span><\/span><\/h3>\n<p><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">The Common Language Infrastructure, or CLR, is at the heart of it: a software virtual machine that manages memory, implements code access security, verifies code security, and executes programs and code. CLR is what makes it a management and multitasking framework and is the platform on which applications run. It has the following key features:<\/span><\/span><\/p>\n<ul>\n<li><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\"> Exception Handling: or managing errors that occur while running the program, such as: Trying to open a file on a local device while the file does not exist.<\/span><\/span><\/li>\n<li><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">Working with different programming languages: As mentioned in the previous section, a developer can create an application in different types of .NET programming languages.<\/span><\/span><\/li>\n<\/ul>\n<h3><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">The different parts of the CLR are:<\/span><\/span><\/h3>\n<ul>\n<li><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">Language: The first level is the programming language itself, the most common of which are VB.NET and C #.<\/span><\/span><\/li>\n<li><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">Compiler: There is a separate compiler for each programming language. So, under VB.NET, there will be a separate VB.NET compiler. Similarly, for C #, you will have another compiler.<\/span><\/span><\/li>\n<li><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">Common Language Interpreter: This is the last layer that is used to run a program built into any programming language. So the next compiler sends the program to the CLI layer to run the program.<\/span><\/span><\/li>\n<\/ul>\n<h3><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">Class Libraries<\/span><\/span><\/h3>\n<p><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">This Framework includes a set of standard class libraries. So, Libraries are a collection of methods and functions used for their original purpose.<\/span><\/span><\/p>\n<p><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">For example, there is a library with methods for performing all file operations. So, there is a way to use a file to read text. Similarly, there is a way to write text to a file. Most of these methods in .NET are in the System or Microsoft namespaces.<\/span><\/span><\/p>\n<h3><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">programming languages<\/span><\/span><\/h3>\n<p><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">Several languages, editors, and libraries can be used within .NET; that&#8217;s why programmers have so many choices in developing their programs. The most commonly used of these languages \u200b\u200bare:<\/span><\/span><\/p>\n<ul>\n<li><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">C #: A simple, modern, object-oriented programming language<\/span><\/span><\/li>\n<li><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">Visual Basic (VB): A simple, user-friendly, object-oriented language with easy text for applications<\/span><\/span><\/li>\n<\/ul>\n<h3><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">Suitable environments for .NET programming<\/span><\/span><\/h3>\n<p><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">Visual Studio is the most comprehensive environment for application development. The next option, which is somewhat lighter and used by most web developers, is Visual Studio Code. Rider, designed by JETBRAIN, is another option for choosing an environment.<\/span><\/span><\/p>\n<h2><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">Why do we use .NET?<\/span><\/span><\/h2>\n<h3><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">To be independent<\/span><\/span><\/h3>\n<p><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">The main advantage of this Framework is its independence from programming languages. Instead of being limited to a specific programming language, programmers can use any compatible language.<\/span><\/span><\/p>\n<h3><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\"> Support over time<\/span><\/span><\/h3>\n<p><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">Suppose you created an application in the older version of it, for example, 2.0. And you try to run the same program on a device that has a higher version of the Framework, such as 3.5. The program is still working. This is because, with each version, Microsoft ensures that older versions of the Framework are compatible with the latest version.<\/span><\/span><\/p>\n<h3><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\"> Portable<\/span><\/span><\/h3>\n<p><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">Throughout this article, we have mentioned many times that applications built with it can run on any platform, including Windows, iOS, and Linux.<\/span><\/span><\/p>\n<h3><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\"> Memory Management<\/span><\/span><\/h3>\n<p><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">The CLR does all the memory management work. So this Framework has a high ability to find resources that are not being used by a running application, freeing up those resources through the Garbage Collector mechanism.<\/span><\/span><\/p>\n<h3><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\"> Easy deployment<\/span><\/span><\/h3>\n<p><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">.NET has tools that can be used for packaging built-in applications. Eventually, these packages will be on client devices and will automatically install the program.<\/span><\/span><\/p>\n<h3><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\"> high security<\/span><\/span><\/h3>\n<p><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">As you know, Microsoft values \u200b\u200bsecurity. Therefore, this Microsoft product is reliable against malicious attempts to change the compiled code.<\/span><\/span><\/p>\n<h3><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">Who should not go to this Framework?<\/span><\/span><\/h3>\n<p><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">It is somewhat difficult for people unfamiliar with the world of programming to properly explain the operation of this Framework. For people who use logical languages like C, it is somewhat uncomfortable because it is a framework consisting of object-oriented languages. For this reason, it may be better to go to this Framework after mastering the concepts and developing a deep understanding of programming.<\/span><\/span><\/p>\n<h3><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">Conclusion<\/span><\/span><\/h3>\n<p><span class=\"VIiyi\" lang=\"en\"><span class=\"JLqJ4b\" data-language-for-alternatives=\"en\" data-language-to-translate-into=\"fa\" data-phrase-index=\"0\">It is a comprehensive and valuable collection with a bright future, and as promised by Microsoft, we will see a comprehensive version of it by the end of 2020 that will be able to run and support a variety of operating systems, devices, and applications.<\/span><\/span><\/p>\n<h2>FAQ<\/h2>\n<div id=\"rank-math-rich-snippet-wrapper\"><div id=\"rank-math-faq\" class=\"rank-math-block\">\n<div class=\"rank-math-list \">\n<div id=\"faq-1\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">What is .NET and what are its core components?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>.NET is a free, cross-platform, open-source developer platform by Microsoft for building applications in multiple languages (e.g., C#, F#, VB). Key components include the runtime (CLR), base-class libraries, compilers, and app-stacks such as the web stack ASP.NET Core.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-2\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">What is .NET Core and how does it differ from the older .NET Framework?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>.NET Core is the modern, modular, cross-platform implementation of .NET that runs on Windows, macOS and Linux, supports side-by-side versioning, has higher performance and is open-source. In contrast, the older .NET Framework is Windows-only, monolithic, and no longer receiving feature updates.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-3\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">Which version of .NET should I learn or use for a new project?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>For new projects, you should target the current cross-platform .NET (formerly \u201c.NET Core\u201d line, now simply \u201c.NET 5\/6\/7+\u201d), as it offers the most up-to-date tools, libraries and ecosystem. The legacy .NET Framework remains only for maintenance or very Windows-specific scenarios.<\/p>\n\n<\/div>\n<\/div>\n<\/div>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>.NET is a free and open-source development framework for developing many applications. Join us to learn more about this Framework. In this article, you will learn about. This Framework and its architecture, learn about the differences between .NET CORE and .NET Framework, and learn when to use them. The birth of .NET It was first [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":6598,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1095],"tags":[1066,809],"class_list":["post-6594","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-framework","tag-c","tag-microsoft"],"acf":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/posts\/6594","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/comments?post=6594"}],"version-history":[{"count":3,"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/posts\/6594\/revisions"}],"predecessor-version":[{"id":265276,"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/posts\/6594\/revisions\/265276"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/media\/6598"}],"wp:attachment":[{"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/media?parent=6594"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/categories?post=6594"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/tags?post=6594"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}