dir.by  
Поиск >>

Компьютер, программы
→
.NET Core
 Install a new version (.NET 9) for Visual Studio 2022 
посмотрели 4431 раз
обновлено: 31 October 2025
Step 1. Download .NET 9
Download .NET 9 for Visual Studio 2022 from the official website:
https://dotnet.microsoft.com/en-us/download/dotnet
 
Click on: Windows x64
After installation, let's do a check:
After installation, run the comad line and enter the command dotnet --info
  Command Prompt (Win Console)  
dotnet --info
On the screen we will see:
.NET installed:
9.0.306 [C:\Program Files\dotnet\sdk]
 
Step 2. In Visual Studio 2022 for the project, select .NET 9.0
In Visual Studio 2022 right-click on the project → tab Application → Target Framework [Choosing the new version 9.0]
 
When compiling a project, error:
Error
NETSDK1 The current .NET SDK does not support targeting .NET 9.0. Either target .NET 7.0 or lower, or use a version of the .NET SDK that supports .NET 9.0.
 
Decision!
I have Visual Studio 2022 (version 17.6.5).
In order to compile a project with NET 9, you need to update Visual Studio, i.e. my version is old (17.6.5)

Updating Visual Studio 2022
At the top of the menu, click: Help → Check for Updates
 
Press Update
 
Result!
Everything compiles and NET 9 works well.
 
← Previous topic
Authentication is login/register/logout in the ASP.NET Core MVC application
 
Next topic →
Install the new version (.NET 6.0) for Visual Studio 2022. Note! .NET 6.0 is not installed and does not work for Visual Studio 2019
 
Your feedback ... Comments ...
   
Your Name
Your comment (www links can only be added by a logged-in user)

Новость "Черная пятница" Dreame в Беларуси – две недели скидок до 3400 рублей
 
• What is .NET Core?
• Creating a New .NET Core Console App
ASP.NET Core
• What is ASP.NET Core?
• Creating a new application ASP.NET Core
ASP.NET Core MVC
• Creating a new application ASP.NET Core MVC
• Built-in IoC container in ASP.NET Core
<BR>
Database (Entity Framework) in ASP.NET Core MVC
• Entity Framework in the ASP.NET Core MVC application. Using Code First (we write c# code, and the tables in the database are created by ourselves)
<BR>
Telerik (Kendo UI) in ASP.NET Core MVC
• Telerik (Kendo UI) in ASP.NET Core MVC (connect Kendo js files using NPM and Webpack)
<BR>
Authentication (login/register/logout) in the ASP.NET Core MVC application
• Authentication is login/register/logout in the ASP.NET Core MVC application
Additional topics, questions
• Install a new version (.NET 9) for Visual Studio 2022 | Error: NETSDK1 The current .NET SDK does not support targeting .NET 9.0. Either target .NET 7.0 or lower, or use a version of the .NET SDK that supports .NET 9.0.
• Install the new version (.NET 6.0) for Visual Studio 2022. Note! .NET 6.0 is not installed and does not work for Visual Studio 2019
• Installing a new version (.NET Core 2.2) for Visual Studio 2019
• Choosing between ASP.NET Core and ASP.NET?
• Porting code to .NET Core from the .NET Framework
• Error "unable to connect to web server "iis express" | ASP.NET Core | Visual Studio 2017
• Error "This site can"t be reached" when run ASP.NET Core application | Solution: Recreate the Self-Signed HTTPS Certificate for localhost in IIS Express
WWW sites for learning
• Sites to learn ASP.NET Core

  Ваши вопросы присылайте по почте: info@dir.by