Установка .NET в Windows, Linux и macOS
Узнайте об установке .NET в Windows, Linux и macOS. Узнайте о зависимостях, необходимых для разработки, развертывания и запуска приложений .NET.
Windows
Общие сведения
- Установка в Windows
- Поддерживаемые выпуски Windows
- Зависимости
- Установка с помощью Visual Studio
- Установка вместе с Visual Studio Code
macOS
Общие сведения
- Установка в macOS
- Поддерживаемые выпуски macOS
- Установка вместе с Visual Studio Code
Linux
Общие сведения
- Обзор Linux
- Алпайн
- CentOS
- Debian
- Fedora
- openSUSE
- Red Hat Enterprise Linux и CentOS Stream
- SUSE Linux Enterprise Server
- Ubuntu
Вопросы и ответы
Начало работы
- Автономные установщики
- Установщики Visual Studio
- Веб-каналы Linux
- Docker
- Корпоративное развертывание
- Светлая
- Темная
- Высокая контрастность
- Предыдущие версии
- Блог
- Участие в доработке
- Конфиденциальность
- Условия использования
- Товарные знаки
- © Microsoft 2023
- Светлая
- Темная
- Высокая контрастность
- Предыдущие версии
- Блог
- Участие в доработке
- Конфиденциальность
- Условия использования
- Товарные знаки
- © Microsoft 2023
How to add the .NET framework 5.0 to Visual Studio 2019 Community?
I need to use the .NET framework 5.0 in my Visual Studio 2019 Community version. I followed the instructions mentioned here: «How can I add the Net framework 5.0 to Visual Studio Professional 2019» but I still cannot choose from the drop-down menu the .NET framework 5.0 for my project. Not only I restarted VS multiple times, I already uninstalled and installed it again, just to get the same result — .NET framework 5.0 is installed on my computer, but it’s not showing up in the Visual Studio.

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
Install .NET on Windows
In this article, you’ll learn how to install .NET on Windows. .NET is made up of the runtime and the SDK. The runtime is used to run a .NET app and may or may not be included with the app. The SDK is used to create .NET apps and libraries. The .NET runtime is always installed with the SDK.
The latest version of .NET is 8.
There are two types of supported releases: Long Term Support (LTS) releases and Standard Term Support (STS) releases. The quality of all releases is the same. The only difference is the length of support. LTS releases get free support and patches for 3 years. STS releases get free support and patches for 18 months. For more information, see .NET Support Policy.
The following table lists the support status of each version of .NET (and .NET Core):
| ✔️ Supported | ❌ Unsupported |
|---|---|
| 8 (LTS) | 5 |
| 7 (STS) | 3.1 |
| 6 (LTS) | 3.0 |
| 2.1 | |
| 2.0 | |
| 1.1 | |
| 1.0 |
Install with Windows Package Manager (winget)
You can install and manage .NET through the Windows Package Manager service, using the winget tool. For more information about how to install and use winget, see Use the winget tool.
If you’re installing .NET system-wide, install with administrative privileges.
Install the SDK
The .NET SDK allows you to develop apps with .NET. If you install the .NET SDK, you don’t need to install the corresponding runtimes. To install the .NET SDK, run the following command:
winget install Microsoft.DotNet.SDK.8
Install the runtime
For Windows, there are three .NET runtimes you can install. You should install both the .NET Desktop Runtime and the ASP.NET Core Runtime to ensure that you’re compatible with all types of .NET apps.
-
.NET Desktop Runtime This runtime includes the base .NET runtime, and supports Windows Presentation Foundation (WPF) and Windows Forms apps that are built with .NET. This isn’t the same as .NET Framework, which comes with Windows.
winget install Microsoft.DotNet.DesktopRuntime.8
winget install Microsoft.DotNet.AspNetCore.8
winget install Microsoft.DotNet.Runtime.8
You can install preview versions of the runtimes by substituting the version number, such as 6 , with the word Preview . The following example installs the preview release of the .NET Desktop Runtime:
winget install Microsoft.DotNet.DesktopRuntime.Preview
Install alongside Visual Studio Code
Visual Studio Code is a powerful and lightweight source code editor that runs on your desktop. Visual Studio Code is available for Windows, macOS, and Linux.
While Visual Studio Code doesn’t come with an automated .NET Core installer like Visual Studio does, adding .NET Core support is simple.
- Download and install Visual Studio Code.
- Download and install the .NET SDK.
- Install the C# extension from the Visual Studio Code marketplace.
Install with Windows Installer
The download page for .NET provides Windows Installer executables.
[IMPORTANT] Starting in November 2021, you can’t change the installation path of .NET with the Windows Installer package. To install .NET to a different path, use the dotnet-install scripts.
If you want to install .NET silently, such as in a production environment or to support continuous integration, use the following switches:
- /install
Installs .NET. - /quiet
Prevents any UI and prompts from displaying. - /norestart
Suppresses any attempts to restart.
dotnet-sdk-8.0.100-win-x64.exe /install /quiet /norestart
The installer returns an exit code of 0 for success and an exit code of 3010 to indicate that a restart is required. Any other value is generally an error code.
Install with PowerShell automation
The dotnet-install scripts are used for CI automation and non-admin installs of the runtime. You can download the script from the dotnet-install script reference page.
The script defaults to installing the latest long term support (LTS) version, which is .NET 8. You can choose a specific release by specifying the Channel switch. Include the Runtime switch to install a runtime. Otherwise, the script installs the SDK.
The following command installs the ASP.NET Core runtime for maximum compatibility. The ASP.NET Core runtime also includes the standard .NET runtime.
dotnet-install.ps1 -Channel 8.0 -Runtime aspnetcore
Install the SDK by omitting the -Runtime switch. The -Channel switch is set in this example to STS , which installs the latest Standard Term Support version, which is .NET 7.
dotnet-install.ps1 -Channel STS
Install with Visual Studio
If you’re using Visual Studio to develop .NET apps, the following table describes the minimum required version of Visual Studio based on the target .NET SDK version.
| .NET SDK version | Visual Studio version |
|---|---|
| 8 | Visual Studio 2022 version 17.8 or higher. |
| 7 | Visual Studio 2022 version 17.4 or higher. |
| 6 | Visual Studio 2022 version 17.0 or higher. |
| 5 | Visual Studio 2019 version 16.8 or higher. |
| 3.1 | Visual Studio 2019 version 16.4 or higher. |
| 3.0 | Visual Studio 2019 version 16.3 or higher. |
| 2.2 | Visual Studio 2017 version 15.9 or higher. |
| 2.1 | Visual Studio 2017 version 15.7 or higher. |
If you already have Visual Studio installed, you can check your version with the following steps.
- Open Visual Studio.
- Select Help >About Microsoft Visual Studio.
- Read the version number from the About dialog.
Visual Studio can install the latest .NET SDK and runtime.
Select a workload
When installing or modifying Visual Studio, select one or more of the following workloads, depending on the kind of application you’re building:
- The .NET Core cross-platform development workload in the Other Toolsets section.
- The ASP.NET and web development workload in the Web & Cloud section.
- The Azure development workload in the Web & Cloud section.
- The .NET desktop development workload in the Desktop & Mobile section.

Supported releases
The following table is a list of currently supported .NET releases and the versions of Windows they’re supported on. These versions remain supported until either the version of .NET reaches end-of-support or the version of Windows reaches end-of-life.
Windows 10 versions end-of-service dates are segmented by edition. Only Home, Pro, Pro Education, and Pro for Workstations editions are considered in the following table. Check the Windows lifecycle fact sheet for specific details.
A + symbol represents the minimum version.
| Operating System | .NET 8 | .NET 7 | .NET 6 |
|---|---|---|---|
| Windows 11 | ✔️ | ✔️ | ✔️ |
| Windows Server 2022 | ✔️ | ✔️ | ✔️ |
| Windows Server, Version 1903 or later | ✔️ | ✔️ | ✔️ |
| Windows 10, Version 1607 or later | ✔️ | ✔️ | ✔️ |
| Windows 8.1 | ❌ | ❌ | ✔️ |
| Windows 7 SP1 ESU | ❌ | ❌ | ✔️ |
| Windows Server 2019 Windows Server 2016 Windows Server 2012 R2 Windows Server 2012 |
✔️ | ||
| Windows Server Core 2012 R2 | ✔️ | ✔️ | ✔️ |
| Windows Server Core 2012 | ✔️ | ✔️ | ✔️ |
| Nano Server, Version 1809+ | ✔️ | ✔️ | ✔️ |
| Nano Server, Version 1803 | ❌ | ❌ | ❌ |
For more information about .NET 8 supported operating systems, distributions, and lifecycle policy, see .NET 8 Supported OS Versions.
Unsupported releases
The following versions of .NET are ❌ no longer supported:
- .NET 5
- .NET Core 3.1
- .NET Core 3.0
- .NET Core 2.2
- .NET Core 2.1
- .NET Core 2.0
Verify downloaded binaries
After downloading an installer, verify it to make sure that the file hasn’t been changed or corrupted. You can verify the checksum on your computer and then compare it to what was reported on the download website.
When you download an installer or binary from an official download page, the checksum for the file is displayed. Select the Copy button to copy the checksum value to your clipboard.

You can use PowerShell or Command Prompt to validate the checksum of the file you’ve downloaded. For example, the following command reports the checksum of the dotnet-sdk-8.0.100-win-x64.exe file:
> certutil -hashfile dotnet-sdk-8.0.100-win-x64.exe SHA512 SHA512 hash of dotnet-sdk-8.0.100-win-x64.exe: 248acec95b381e5302255310fb9396267fd74a4a2dc2c3a5989031969cb31f8270cbd14bda1bc0352ac90f8138bddad1a58e4af1e56cc4a1613b1cf2854b518e CertUtil: -hashfile command completed successfully.
> (Get-FileHash .\dotnet-sdk-8.0.100-win-x64.exe -Algorithm SHA512).Hash 248acec95b381e5302255310fb9396267fd74a4a2dc2c3a5989031969cb31f8270cbd14bda1bc0352ac90f8138bddad1a58e4af1e56cc4a1613b1cf2854b518e
Compare the checksum with the value provided by the download site.
Use PowerShell and a checksum file to validate
The .NET release notes contain a link to a checksum file you can use to validate your downloaded file. The following steps describe how to download the checksum file and validate a .NET install binary:

- The release notes page for .NET 8 on GitHub at https://github.com/dotnet/core/tree/main/release-notes/8.0 contains a section named Releases. The table in that section links to the downloads and checksum files for each .NET 8 release:
- Select the link for the version of .NET that you downloaded. The previous section used .NET SDK 8.0.100, which is in the .NET 8.0.0 release.
Tip If you’re not sure which .NET release contains your checksum file, explore the links until you find it.

Invoke-WebRequest https://dotnetcli.blob.core.windows.net/dotnet/checksums/8.0.0-sha.txt -OutFile 8.0.0-sha.txt
> (Get-Content .\8.0.0-sha.txt | Select-String "dotnet-sdk-8.0.100-win-x64.exe").Line -like (Get-FileHash .\dotnet-sdk-8.0.100-win-x64.exe -Algorithm SHA512).Hash + "*" True
Runtime information
The runtime is used to run apps created with .NET. When an app author publishes an app, they can include the runtime with their app. If they don’t include the runtime, it’s up to the user to install the runtime.
There are three different runtimes you can install on Windows:
- ASP.NET Core runtime
Runs ASP.NET Core apps. Includes the .NET runtime. - Desktop runtime
Runs .NET WPF and Windows Forms desktop apps for Windows. Includes the .NET runtime. - .NET runtime
This runtime is the simplest runtime and doesn’t include any other runtime. It’s highly recommended that you install both ASP.NET Core runtime and Desktop runtime for the best compatibility with .NET apps.
SDK information
The SDK is used to build and publish .NET apps and libraries. Installing the SDK includes all three runtimes: ASP.NET Core, Desktop, and .NET.
Arm-based Windows PCs
The following sections describe things you should consider when installing .NET on an Arm-based Windows PC.
What’s supported
The following table describes which versions of .NET are supported on an Arm-based Windows PC:
| .NET Version | Architecture | SDK | Runtime | Path conflict |
|---|---|---|---|---|
| 8 | Arm64 | Yes | Yes | No |
| 8 | x64 | Yes | Yes | No |
| 7 | Arm64 | Yes | Yes | No |
| 7 | x64 | Yes | Yes | No |
| 6 | Arm64 | Yes | Yes | No |
| 6 | x64 | Yes | Yes | No |
| 5 | Arm64 | Yes | Yes | Yes |
| 5 | x64 | No | Yes | Yes |
Starting with .NET 6, the x64 and Arm64 versions of the .NET SDK exist independently from each other. If a new version is released, each architecture install needs to be upgraded.
Path differences
On an Arm-based Windows PC, all Arm64 versions of .NET are installed to the normal C:\Program Files\dotnet\ folder. However, when you install the x64 version of the .NET SDK, it’s installed to the C:\Program Files\dotnet\x64\ folder.
Path conflicts
Starting with .NET 6, the x64 .NET SDK installs to its own directory, as described in the previous section. This allows the Arm64 and x64 versions of the .NET SDK to exist on the same machine. However, any x64 SDK prior to 6 isn’t supported and installs to the same location as the Arm64 version, the C:\Program Files\dotnet\ folder. If you want to install an unsupported x64 SDK, you’ll need to first uninstall the Arm64 version. The opposite is also true, you’ll need to uninstall the unsupported x64 SDK to install the Arm64 version.
Path variables
Environment variables that add .NET to system path, such as the PATH variable, may need to be changed if you have both the x64 and Arm64 versions of the .NET SDK installed. Additionally, some tools rely on the DOTNET_ROOT environment variable, which would also need to be updated to point to the appropriate .NET SDK installation folder.
Dependencies
The following Windows versions are supported with .NET 8:
A + symbol represents the minimum version.
| OS | Version | Architectures |
|---|---|---|
| Windows 11 | 22000+ | x64, x86, Arm64 |
| Windows 10 Client | 1607+ | x64, x86, Arm64 |
| Windows Server | 2012+ | x64, x86 |
| Windows Server Core | 2012+ | x64, x86 |
| Nano Server | 1809+ | x64 |
For more information about .NET 8 supported operating systems, distributions, and lifecycle policy, see .NET 8 Supported OS Versions.
The following Windows versions are supported with .NET 7:
A + symbol represents the minimum version.
| OS | Version | Architectures |
|---|---|---|
| Windows 11 | 21H2+ | x64, Arm64 |
| Windows 10 Client | 1607+ | x64, x86, Arm64 |
| Windows Server | 2012+ | x64, x86 |
| Windows Server Core | 2012+ | x64, x86 |
| Nano Server | 1809+ | x64 |
For more information about .NET 7 supported operating systems, distributions, and lifecycle policy, see .NET 7 Supported OS Versions.
The following Windows versions are supported with .NET 6:
A + symbol represents the minimum version.
| OS | Version | Architectures |
|---|---|---|
| Windows 11 | 21H2+ | x64, Arm64 |
| Windows 10 Client | 1607+ | x64, x86, Arm64 |
| Windows Client | 7 SP1+, 8.1 | x64, x86 |
| Windows Server | 2012+ | x64, x86 |
| Windows Server Core | 2012+ | x64, x86 |
| Nano Server | 1809+ | x64 |
For more information about .NET 6 supported operating systems, distributions, and lifecycle policy, see .NET 6 Supported OS Versions.
Offline install for Windows 7
This section only applies to .NET Core 2.1.
When doing an offline install for .NET Core 2.1 on Windows 7, you’ll first need to make sure that the latest Microsoft Root Certificate Authority 2011 has been installed on the target machine.
The certmgr.exe tool can automate installing a certificate and is obtained from Visual Studio or the Windows SDK. The following command is used to install the certificate before running the .NET Core 2.1 installer:
certmgr.exe /add MicRooCerAut2011_2011_03_22.crt /s /r localMachine root
Be sure to review the dependencies required for Windows 7 below.
Windows 7 / 8.1 / Server 2012
More dependencies are required if you’re installing the .NET SDK or runtime on the following Windows versions:
| Operating System | Prerequisites |
|---|---|
| Windows 7 SP1 ESU | — Microsoft Visual C++ 2015-2019 Redistributable 64-bit / 32-bit — KB3063858 64-bit / 32-bit — Microsoft Root Certificate Authority 2011 (.NET Core 2.1 offline installer only) |
| Windows 8.1 | Microsoft Visual C++ 2015-2019 Redistributable 64-bit / 32-bit |
| Windows Server 2012 | Microsoft Visual C++ 2015-2019 Redistributable 64-bit / 32-bit |
| Windows Server 2012 R2 | Microsoft Visual C++ 2015-2019 Redistributable 64-bit / 32-bit |
The previous requirements are also required if you receive an error related to either of the following dlls:
- api-ms-win-crt-runtime-l1-1-0.dll
- api-ms-win-cor-timezone-l1-1-0.dll
- hostfxr.dll
Docker
Containers provide a lightweight way to isolate your application from the rest of the host system. Containers on the same machine share just the kernel and use resources given to your application.
.NET can run in a Docker container. Official .NET Docker images are published to the Microsoft Container Registry (MCR) and are discoverable at the Microsoft .NET Docker Hub repository. Each repository contains images for different combinations of the .NET (SDK or Runtime) and OS that you can use.
Microsoft provides images that are tailored for specific scenarios. For example, the ASP.NET Core repository provides images that are built for running ASP.NET Core apps in production.
For more information about using .NET in a Docker container, see Introduction to .NET and Docker and Samples.
Troubleshooting
After installing the .NET SDK, you may run into problems trying to run .NET CLI commands. This section collects those common problems and provides solutions.
It was not possible to find any installed .NET Core SDKs
Most likely you’ve installed both the x86 (32-bit) and x64 (64-bit) versions of the .NET SDK. This is causing a conflict because when you run the dotnet command it’s resolving to the x86 version when it should resolve to the x64 version. This is usually fixed by adjusting the %PATH% variable to resolve the x64 version first.
-
Verify that you have both versions installed by running the where.exe dotnet command. If you do, you should see an entry for both the Program Files\ and Program Files (x86)\ folders. If the Program Files (x86)\ folder is first as indicated by the following example, it’s incorrect and you should continue on to the next step.
> where.exe dotnet C:\Program Files (x86)\dotnet\dotnet.exe C:\Program Files\dotnet\dotnet.exe
If it’s correct and the Program Files\ is first, you don’t have the problem this section is discussing and you should create a .NET help request issue on GitHub




Next steps
- How to check if .NET is already installed.
- Tutorial: Hello World tutorial.
- Tutorial: Create a new app with Visual Studio Code.
- Tutorial: Containerize a .NET Core app.
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Установка .NET Framework для разработчиков
Платформа .NET является неотъемлемой частью многих приложений, выполняющихся в операционной системе Windows, и предоставляет общие функциональные возможности для выполнения этих приложений. С точки зрения разработчиков платформа .NET предоставляет полную и согласованную модель программирования для разработки приложений с великолепным пользовательским интерфейсом и простым и безопасным обменом данными.
Эта статья предназначена для разработчиков, которые хотят установить .NET Framework в собственной системе, или для тех, кто хочет установить платформу вместе со своими приложениями. Сведения об установке .NET Framework приводятся в специальных статьях об установке .NET Framework в определенных операционных системах, например в разделе Установка платформы .NET Framework в Windows 10 и Windows Server 2016.
В этой статье содержатся ссылки на установку всех версий платформа .NET Framework с платформа .NET Framework 4.5 до платформа .NET Framework 4.8.1 на компьютере. Разработчики могут использовать эти ссылки для загрузки и распространения .NET Framework вместе со своими приложениями. Подробные сведения о развертывании версии .NET Framework в приложении см. в статье Руководство по развертыванию .NET Framework для разработчиков.
Содержимое платформы .NET Framework, подписанное ранее с помощью сертификатов, использующих алгоритм SHA1, перестанет использоваться, чтобы поддержать развитие отраслевых стандартов.
Следующие версии платформы .NET Framework достигнут окончания поддержки 26 апреля 2022 г. : 4.5.2, 4.6 и 4.6.1. После этой даты исправления безопасности, обновления и техническая поддержка для этих версий предоставляться не будут.
Если вы используете платформу .NET Framework 4.5.2, 4.6 или 4.6.1, обновите развернутую среду выполнения до более новой версии, например .NET Framework 4.6.2 до 26 апреля 2022 г. , чтобы продолжить получать обновления и техническую поддержку.
Для версий .NET Framework 3.5 SP1 и 4.6.2–4.8 будут доступны обновленные установщики, подписанные с использованием SHA2. Дополнительные сведения см. в плане прекращения использования SHA1, записи блога, посвященной обновлению жизненного цикла .NET 4.5.2, 4.6 и 4.6.1 и часто задаваемых вопросах.
В системе может быть только одна версия 4.х, так как все версии .NET Framework, начиная с версии .NET Framework 4, — это локальные обновления. Кроме того, некоторые версии платформы .NET Framework предустанавливаются в некоторые версии операционной системы Windows. Это означает следующее:
- Если на компьютере установлена более поздняя версия 4.x, вы не сможете установить предыдущую версию 4.x.
- Если в операционной системе предустановлена определенная версия .NET Framework, вы не сможете установить предыдущую версию 4.x на том же компьютере.
- При установке более поздней версии не нужно удалять предыдущую версию.
Дополнительные сведения о версиях .NET Framework и определении установленной версии на компьютере см. в разделах Версии и зависимости и Практическое руководство. Определение установленных версий платформы .NET Framework.
В следующей таблице вы найдете полезные ссылки, а далее в документе — другую нужную информацию. Чтобы просмотреть требования к системе для .NET Framework перед установкой, ознакомьтесь с разделом Требования к системе. Справочные сведения по устранению неполадок см. в разделе Устранение неполадок.
Можно установить в:
Windows 11
Windows 10 версии 21H2
Windows 10 версии 21H1
Windows 10 версии 20H2
Windows Server 2022
Windows 11
Обновление Windows 10 за май 2019 г. (и более поздние версии)
Visual Studio 2019 (версия 16.3)
Можно установить в:
Обновление Windows 10 за октябрь 2018 г.
Обновление Windows 10 за апрель 2018 г.
Windows 10 Fall Creators Update
Обновление Windows 10 Creators Update
Юбилейное обновление Windows 10 Anniversary Update
Windows 8.1 и более ранней версии
Windows Server 2022
Windows Server 2019
Windows Server, версия 1809
Windows Server, версия 1803
Обновление Windows 10 за октябрь 2018 г.
Обновление Windows 10 за апрель 2018 г.
Windows Server 2019
Windows Server, версия 1809
Windows Server, версия 1803
Visual Studio 2017 с обновлением 15.8
Можно установить в:
Windows 10 Fall Creators Update
Обновление Windows 10 Creators Update
Юбилейное обновление Windows 10 Anniversary Update
Windows 8.1 и более ранней версии
Windows Server, версия 1709 и более ранние
Windows 10 Fall Creators Update
Windows Server, версия 1709
Visual Studio 2017 с обновлением 15.5
Можно установить в:
Можно установить в:
Юбилейное обновление Windows 10 Anniversary Update
Можно установить в:
Можно установить в:
Можно установить в:
Windows 8.1
Windows Server 2012 R2
Visual Studio 2013
Можно установить в:
Windows 8
Windows Server 2012
Visual Studio 2012
Можно установить в:
Начиная с версии 2022, Visual Studio больше не включает компоненты для .NET Framework 4.0–4.5.1, так как эти версии больше не поддерживаются. Visual Studio 2022 и более поздние версии не могут выполнять сборку приложений, предназначенных для платформ .NET Framework 4.0–4.5.1. Чтобы сохранить возможность сборки таких приложений, используйте Visual Studio 2019 и более ранние версии.
Можно установить Developer Pack (если он доступен) для конкретной версии платформы .NET Framework на всех поддерживаемых платформах.
Пакеты разработчика предназначены только для определенной версии платформа .NET Framework и не включают предыдущие версии. Например, пакет разработчика платформа .NET Framework 4.8 не включает платформа .NET Framework 4.7.
Веб- или автономный установщик можно установить в следующих ОС:
- Windows 8.1 и более ранней версии
- Windows Server 2012 R2 и более ранней версии
Полный список см. в разделе Требования к системе.
Общие сведения о платформе .NET Framework для пользователей и разработчиков см. в статье Начало работы. Сведения о развертывании .NET Framework с приложением см. в руководстве по развертыванию. Информацию об архитектуре и основных функциях .NET Framework см. в обзоре.
Варианты установки
Установите пакет разработчика для нескольких платформ, который позволяет осуществлять разработку в последней версии .NET Framework в Visual Studio или других средах разработки, или загрузите распространяемый пакет .NET Framework для распространения с приложением или элементом управления.
Установка .NET Framework Developer Pack или Microsoft .NET Framework Targeting Pack
Пакет выбора целевой платформы Targeting Pack позволяет нацелить приложение на конкретную версию платформы .NET Framework при разработке в Visual Studio и некоторых других средах. Пакет разработчика Developer Pack включает в себя определенную версию .NET Framework и подходящий пакет SDK вместе с соответствующим пакетом Targeting Pack.
Пакет разработчика для NET Framework 4.5.1 или 4.5.2, пакет выбора целевой платформы для .NET Framework 4.6 и пакет разработчика для .NET Framework 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2 или 4.8 включают в себя базовые сборки, языковые пакеты и файлы IntelliSense для определенной версии .NET Framework, которые можно использовать в интегрированной среде разработки, такой как Visual Studio. Если вы используете Visual Studio, пакет разработчика или пакет выбора целевой платформы также добавляет установленную версию .NET Framework в набор доступных для выбора платформ при создании проекта. Выберите один из следующих вариантов.
- платформа .NET Framework 4.8.1
- .NET Framework 4.8
- .NET Framework 4.7.2
- .NET Framework 4.7.1
- .NET Framework 4.7
- .NET Framework 4.6.2
- .NET Framework 4.6.1
- .NET Framework 4.6
- .NET Framework 4.5.2 для установки версии 4.5.2 в Windows 8.1 или более ранних версиях, Visual Studio 2013, Visual Studio 2012 и других интегрированных средах разработки.
- .NET Framework 4.5.1 для установки версии 4.5.1 в Visual Studio 2012 и других интегрированных средах разработки.
На странице загрузки пакета разработчика нажмите кнопку Загрузка. Затем щелкните Выполнить или Сохранить и выполните предложенные инструкции. Вы также можете установить пакет разработчика или пакет выбора целевой платформы для конкретной версии .NET Framework, выбрав его из списка дополнительных компонентов в рабочей нагрузке Разработка классических приложений .NET в Visual Studio Installer, как показано на рисунке ниже.
При нацеливании на конкретную версию платформы .NET Framework ваше приложение создается с помощью базовых сборок, включенных в данную версию пакета разработчика. Во время выполнения сборки разрешаются из глобального кэша сборок, а базовые сборки не используются.
При сборке приложения из Visual Studio или использовании MSBuild из командной строки MSBuild может отобразить ошибку MSB3644 » Эталонные сборки для платформы «framework-version» не найдены». Чтобы устранить ошибку, скачайте пакет разработчика или целевой пакет для этой версии платформа .NET Framework.
Установка и загрузка распространяемого пакета .NET Framework
Установщики скачивают компоненты платформы .NET Framework для приложения или элемента управления, ориентированного на эти версии .NET Framework. Эти компоненты необходимо установить на все компьютеры, где выполняется это приложение или элемент управления. Оба установщика являются распространяемыми, поэтому их можно включить в программу установки для приложения.
Страница загрузки представлена на нескольких языках, но большинство загрузок предоставляются только на английском языке. Для поддержки дополнительных языков необходимо установить языковой пакет.
Предусмотрено два типа распространяемых установщиков:
- Веб-установщик (начальный веб-загрузчик) загружает из Интернета все необходимые компоненты и языковой пакет, соответствующий операционной системе компьютера. Этот пакет намного меньше, чем автономный установщик, однако для установки требуется постоянное подключение к Интернету. Для поддержки дополнительных языков можно скачать и установить автономные языковые пакеты.
- Автономный установщик (автономный распространяемый пакет) содержит все необходимые компоненты для установки платформы .NET Framework, но не содержит языковые пакеты. Этот загружаемый файл больше файла веб-установщика. Автономный установщик не требует подключения к Интернету. После запуска автономного установщика можно скачать и установить автономные языковые пакеты. При отсутствии постоянного подключения к Интернету воспользуйтесь автономным установщиком.
Автономный установщик и веб-установщик предназначены для компьютеров x86 и x64 (см. раздел Требования к системе), но не поддерживают компьютеры на основе Itanium.
- Откройте страницу загрузки требуемой версии платформы .NET Framework:
- платформа .NET Framework 4.8.1
- .NET Framework 4.8
- .NET Framework 4.7.2
- .NET Framework 4.7.1
- .NET Framework 4.7
- .NET Framework 4.6.2
- .NET Framework 4.6.1
- .NET Framework 4.6
- .NET Framework 4.5.2
- .NET Framework 4.5.1
- .NET Framework 4.5
- Выберите язык страницы загрузки. Этот параметр не загружает локализованные ресурсы платформы .NET Framework; он влияет только на текст, отображаемый на странице загрузки.
- Выберите Загрузить.
- При появлении соответствующего запроса выберите загрузку, соответствующую архитектуре системы, затем нажмите Далее.
- При появлении запроса на скачивание выполните одно из следующих действий.
- Если требуется установить платформу .NET Framework на компьютер, выберите Выполнить и следуйте инструкциям на экране.
- Если требуется загрузить платформу .NET Framework для распространения, выберите Сохранить и следуйте инструкциям на экране.
- Если требуется загрузить ресурсы для дополнительных языков, следуйте инструкциям по установке языковых пакетов в следующем разделе.
При возникновении неполадок во время установки см. раздел Устранение неполадок.
Примечания по установке
- .NET Framework 4.5 и более поздние версии заменяют .NET Framework 4.0 При установке этих версий в системе, где установлена версия .NET Framework 4, сборки заменяются.
- При удалении .NET Framework 4.5 или более поздней версии автоматически удаляются все существовавшие ранее файлы .NET Framework 4. Если вам нужно вернуться к .NET Framework 4, ее придется полностью переустановить со всеми обновлениями. Ознакомьтесь со статьей Installing the .NET Framework (Установка платформы .NET Framework).
- Для установки .NET Framework 4.5 и более поздних версий требуются права администратора.
- Распространяемый пакет платформы .NET Framework 4.5 был обновлен 9 октября 2012 г., чтобы устранить проблему, связанную с неправильной отметкой времени в цифровом сертификате, которая вызывала преждевременное истечение срока действия цифровой подписи в файлах, создаваемых и подписываемых Microsoft. Если вы ранее установили распространяемый пакет платформы .NET Framework 4.5 от 16 августа 2012 г., рекомендуем обновить установленную копию до последнего распространяемого пакета, который доступен на странице скачивания .NET Framework. Дополнительные сведения об этой проблеме см. в статье Советы по безопасности (Microsoft) (2749655).
Установка языковых пакетов
Языковые пакеты — это исполняемые файлы, содержащие локализованные ресурсы (например, переведенные тексты сообщений об ошибках и пользовательского интерфейса) для поддерживаемых языков. Если языковой пакет не установлен, сообщения об ошибках платформы .NET Framework и другой текст отображаются на английском. Обратите внимание, что веб-установщик автоматически устанавливает языковой пакет, который соответствует операционной системе, но можно загрузить на компьютер дополнительные языковые пакеты. Автономные установщики не содержат языковых пакетов.
Языковые пакеты не содержат компоненты платформы .NET Framework, необходимые для запуска приложения, поэтому перед установкой языкового пакета необходимо запустить веб-установщик или автономный установщик. Если вы уже установили языковой пакет, удалите его, установите .NET Framework и переустановите языковой пакет.
- Откройте страницу загрузки языковых пакетов для установленной версии платформы .NET Framework:
- платформа .NET Framework 4.8.1
- .NET Framework 4.8
- .NET Framework 4.7.2
- .NET Framework 4.7.1
- .NET Framework 4.7
- .NET Framework 4.6.2
- .NET Framework 4.6.1
- .NET Framework 4.6
- .NET Framework 4.5.2
- .NET Framework 4.5.1
- .NET Framework 4.5
- Выберите требуемый язык в списке и подождите несколько секунд, чтобы страница перезагрузилась на этом языке.
- Выберите Загрузить.
В приведенной ниже таблице перечислены поддерживаемые языки.
| Язык | culture |
|---|---|
| Арабский | ar |
| Чешский | cs |
| Датский | da |
| Голландский | nl |
| Финский | fi |
| Английский (США) | en-US |
| Французский | fr |
| Немецкий | de |
| Греческий | el |
| Иврит | he |
| Венгерский | hu |
| Итальянский | it |
| Японский | ja |
| Корейский | ko |
| Норвежский | нет |
| Польский | pl |
| Португальский (Бразилия) | pt-BR |
| Португальский (Португалия) | pt-PT |
| Русский | ru |
| Китайский, упрощенное письмо | zh-CHS |
| Испанский | es |
| Шведский | sv |
| Китайский (традиционный) | zh-CHT |
| Турецкий | tr |
Следующие шаги
- Если у вас отсутствует опыт работы с .NET Framework, см. обзор, содержащий вводные сведения о ключевых понятиях и компонентах.
- Сведения о новых функциях и улучшениях в .NET Framework 4.5 и более поздних версиях см. в разделе Новые возможности.
- Подробные сведения о развертывании .NET Framework в приложении см. в разделе Руководство по развертыванию для разработчиков.
- Изменения, влияющие на развертывание .NET Framework с вашим приложением, см. в разделе Сокращение количества перезапусков системы во время установки .NET Framework 4.5.
- Сведения о переносе приложения с платформы .NET Framework 4 на .NET Framework 4.5 или в более позднюю версию см. в руководстве по миграции.
- Библиотека справочников .NET Framework Reference Source включает исходный код .NET Framework. Справочник по исходному коду также доступен на сайте Github. Вы можете скачать справочник для автономной работы и пошагово просматривать исходный код (включая исправления и обновления) во время отладки. Дополнительные сведения см. в записи блога Новый облик .NET Reference Source.
См. также
- Руководство по развертыванию для разработчиков
- Руководство по развертыванию для администраторов
- Установка .NET Framework 3.5 в Windows 11, Windows 10, Windows 8.1 и Windows 8
- Устранение неполадок с заблокированными установками и удалениями .NET Framework
Совместная работа с нами на GitHub
Источник этого содержимого можно найти на GitHub, где также можно создавать и просматривать проблемы и запросы на вытягивание. Дополнительные сведения см. в нашем руководстве для участников.
The .NET documentation is open source. Provide feedback here.
Обратная связь
Отправить и просмотреть отзыв по
