How to enable .NET 5 runtime on console apps instead of .NET Core 3.1?

How to enable .NET 5 runtime on console apps instead of .NET Core 3.1?

.NET 5: How to enable .NET 5 runtime on console apps instead of .NET Core 3.1? In this article I show you how to select .NET 5 instead of .NET Core 3.1 without having to create a console application in .NET Core 3.1 and then change its runtime in the project properties afterwards.

Introduction

You may have noticed it already, but when you create a console application with Visual Studio 2019, the default runtime is not .NET 5 but .NET Core 3.1! Why ? Because .NET 5 is not LTS and therefore Microsoft has intentionally chosen to offer the latest LTS version of .NET by default, ie .NET Core 3.1.

In this article I show you how to select .NET 5 instead of .NET Core 3.1 without having to create a console application in .NET Core 3.1 and then change its runtime in the project properties afterwards.

console applications dotnet dotnet 5 dotnet core 3.1

What is Geek Coin

What is GeekCash, Geek Token

Best Visual Studio Code Themes of 2021

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Tiny Difference, Big Consequences: SignalR in .NET Core 3.1 vs. .NET 5

I have just migrated application to .NET 5 and guess what, I stumbled across another “tiny difference with big consequences”. Tiny Difference, Big Consequences Reloaded: SignalR in .NET Core 3.1 vs. .NET 5.

.NET Core 2.1, 3.1 and .NET 5.0 updates are coming to Microsoft Update

Delivering .NET Core 2.1, 3.1, and .NET 5.0 updates on Windows via Microsoft Update.

jQuery Ajax CRUD in ASP.NET Core MVC with Modal Popup

In this article, we’ll discuss how to use jQuery Ajax for ASP.NET Core MVC CRUD Operations using Bootstrap Modal. With jQuery Ajax, we can make HTTP request to controller action methods without reloading the entire page, like a single page application.

Dependency Injection in ASP.NET Core 3.1 - Beginner's Guide

Dependency Injection in ASP.NET Core 3.1. What is Dependency Injection? Dependency Injection in ASP.NET Core. ASP.NET Core is designed to support the dependency injection. Dependency injection in ASP.NET Core provides helps to create loosely coupled application.

Dependency Injection in ASP.NET Core 3.1 - Beginner's Guide

Dependency Injection in ASP.NET Core 3.1. What is Dependency Injection? Dependency Injection in ASP.NET Core. ASP.NET Core is designed to support the dependency injection. Dependency injection in ASP.NET Core provides helps to create loosely coupled application.