Install ASP.NET Core 6.0 with ASP.NET Core 3.1

1.7k views Asked by At

I currently have installed ASP.NET Core 3.1 on my computer. Now I need to install ASP.NET Core 6.0 to develop a project on ASP.NET Core 6.0 as well on Ubuntu 20.04 LTS Operating System.

When I run the below code

sudo apt-get install -y dotnet-sdk-6.0

It shows the following response

Reading package lists... Done
Building dependency tree       
Reading state information... Done
dotnet-sdk-6.0 is already the newest version (6.0.101-1).
0 upgraded, 0 newly installed, 0 to remove and 153 not upgrade

but when I check available SDK using dotnet --list-sdks

it shows

3.1.416 [/snap/dotnet-sdk/153/sdk]

How can I solve this

1

There are 1 answers

4
Leandro Toloza On

Microsoft .NetCore 6 SDK

You Need to dowload and install it, also you can do it with Visual Studio, You can Have Both, there is no problem.