Why .net runtime needs to be downloaded for every new project started in vscode

WILSON, ISAAC 0 Reputation points
2024-02-20T20:48:43.5833333+00:00

Could someone please help me understand why this is? Whenever I try to create a new .Net app in vscode with the command palette, it has to download a new .net runtime even though I have .net 8 runtime installed. Screenshot from 2024-02-20 19-46-58

Screenshot from 2024-02-20 19-49-52

Running Ubuntu 22.04

.NET
.NET
Microsoft Technologies based on the .NET software framework.
4,103 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Taylor 57,396 Reputation points
    2024-02-20T20:55:03.17+00:00

    .NET Core has a separate runtime per major version. If you notice in the download portion it is downloading NET 7 but your already installed environment is NET 8. You cannot run a NET 7 app on the NET 8 runtime.

    You shouldn't be targeting NET 7. It is deprecated and EOL is May of this year. Target NET 8 and the existing runtime you have installed will be fine.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.