- Как использовать пакет SDK для Windows 10 в классическом приложении Windows How to: Use the Windows 10 SDK in a Windows Desktop application
- Использование правильного Windows SDK для проекта Use the right Windows SDK for your project
- Изменение целевой платформы для пакета SDK для Windows 10 To target the Windows 10 SDK
- Изменение целевой платформы для пакета SDK для Windows 8.1 To target the Windows 8.1 SDK
- How to: Use the Windows 10 SDK in a Windows Desktop application
- Use the right Windows SDK for your project
- To target the Windows 10 SDK
- To target the Windows 8.1 SDK
- Архив Windows SDK и эмуляторов
- Windows 10
- Предыдущие выпуски
Как использовать пакет SDK для Windows 10 в классическом приложении Windows How to: Use the Windows 10 SDK in a Windows Desktop application
При создании проекта классического рабочего стола Windows в Visual Studio он по умолчанию обращается к пакету SDK для Windows 10. When you create a new classic Windows desktop project in Visual Studio, it targets the Windows 10 SDK by default. Visual Studio устанавливает версию этого пакета SDK при установке рабочей нагрузки C++ рабочего стола. Visual Studio installs a version of this SDK when you install the C++ Desktop workload. Пакет SDK для Windows 10 поддерживает написание кода для Windows 7 SP1 и более поздних версий. The Windows 10 SDK supports writing code for Windows 7 SP1 and later. Дополнительные сведения о нацеливании на конкретные версии Windows см. в разделе Использование заголовков Windows и обновление winver и _WIN32_WINNT. For more information about targeting specific versions of Windows, see Using the Windows Headers and Update WINVER and _WIN32_WINNT.
При обновлении существующего проекта можно выбрать один из вариантов: можно использовать целевой Windows SDK, указанный в проекте. When you upgrade an existing project, you have a choice: You can keep using the target Windows SDK specified in your project. Вы также можете перенацелить проект для использования пакета SDK для Windows 10. Or, you can retarget your project to use the Windows 10 SDK. С помощью пакета SDK для Windows 10 вы получаете преимущества поддержки новейших операционных систем и языковых стандартов. With the Windows 10 SDK, you get the advantages of support for the latest operating systems and language standards.
Использование правильного Windows SDK для проекта Use the right Windows SDK for your project
Начиная с Visual Studio 2015 библиотека среды выполнения C (CRT) была разделена на две части: одна часть, ucrtbase, содержит стандартные функции CRT C и Microsoft, которые можно использовать в универсальных приложениях Windows. Starting with Visual Studio 2015, the C Runtime (CRT) library was separated into two parts: One part, ucrtbase, contains the Standard C and Microsoft-specific CRT functions that you can use in Universal Windows Apps. Эта библиотека теперь называется универсальной библиотекой CRT или UCRT и перешла в пакет SDK для Windows 10. This library is now known as the Universal CRT, or UCRT, and has moved into the Windows 10 SDK. UCRT содержит множество новых функций, таких как функции C99, которые необходимы для поддержки новейших C++ языковых стандартов. The UCRT contains many new functions, such as C99 functions, needed to support the latest C++ language standards. Другая часть исходной CRT — vcruntime. The other part of the original CRT is vcruntime. Он содержит поддержку, запуск и код завершения среды выполнения C, а также все остальное, которые не были отправлены в UCRT. It contains the C runtime support, startup, and termination code, and everything else that didn’t go into the UCRT. Библиотека vcruntime устанавливается вместе с C++ компилятором и набором инструментов в Visual Studio. The vcruntime library gets installed along with the C++ compiler and toolset in Visual Studio. Дополнительные сведения см. в разделе функции библиотеки CRT. For more information, see CRT library features.
UCRT теперь является системным компонентом, установленным на каждой версии Windows 10. The UCRT is now a system component that’s installed on every version of Windows 10. Он также доступен как устанавливаемый компонент для всех более ранних поддерживаемых версий Windows. It’s also available as an installable component for all earlier supported versions of Windows. Вы можете использовать пакет SDK для Windows 10, чтобы выбрать все поддерживаемые версии Windows. You can use the Windows 10 SDK to target all the supported versions of Windows. Полный список поддерживаемых операционных систем см. в разделе Windows 10 SDK. For a complete list of supported operating systems, see Windows 10 SDK.
Чтобы перенацелить проекты на использование пакета SDK для Windows 10 при обновлении версии проекта до Visual Studio 2015, выполните следующие действия. To retarget your projects to use the Windows 10 SDK when you upgrade from a project version before Visual Studio 2015, follow these steps:
Изменение целевой платформы для пакета SDK для Windows 10 To target the Windows 10 SDK
Убедитесь, что установлен пакет SDK для Windows 10. Make sure the Windows 10 SDK is installed. Пакет SDK для Windows 10 устанавливается как часть разработки классических приложений с C++ рабочей нагрузкой. The Windows 10 SDK is installed as part of the Desktop development with C++ workload. Автономная версия доступна в загружаемых файлах и средствах для Windows 10. A standalone version is available at Downloads and tools for Windows 10.
Откройте контекстное меню для узла проекта и выберите пункт перенацелить проекты. Open the shortcut menu for the project node, and choose Retarget projects. (В более ранних версиях Visual Studio выберите Изменить целевую версию пакета SDK.) Откроется диалоговое окно Проверка действий решения . (In earlier versions of Visual Studio, choose Retarget SDK Version.) The Review Solution Actions dialog appears.
В раскрывающемся списке Версия целевой платформы выберите версию пакета SDK для Windows 10, которую вы хотите использовать. In the Target Platform Version dropdown list, choose the version of the Windows 10 SDK you want to target. В целом, мы рекомендуем выбрать последнюю установленную версию. Generally speaking, we recommend you choose the latest installed version. Нажмите кнопку ОК , чтобы применить изменение. Choose the OK button to apply the change.
8,1 в этом контексте относится к пакету SDK для Windows 8.1. The 8.1 in this context refers to the Windows 8.1 SDK.
Если этот шаг выполнен успешно, в окне вывода появится следующее сообщение. If this step is successful, the following text appears in the Output window:
Retargeting End: 1 completed, 0 failed, 0 skipped
Откройте диалоговое окно Свойства проекта. Open the project properties dialog. В разделе Свойства конфигурации > Общие Обратите внимание на значения версии целевой платформы Windows. In the Configuration Properties > General section, notice the values of Windows Target Platform Version. Изменение значения на данном этапе действует аналогично данной процедуре. Changing the value here has the same effect as following this procedure. Дополнительные сведения см. в разделе Страница свойств «Общие» (проект). For more information, see General Property Page (Project).
Это действие приводит к изменению значений макросов проекта, содержащих пути к файлам заголовка и файлам библиотеки. This action changes the values of project macros that include paths to header files and library files. Чтобы увидеть изменения, откройте раздел » визуальные C++ каталоги » диалогового окна » Свойства проекта «. To see what changed, open the Visual C++ Directories section of the Project Properties dialog. Выберите одно из свойств, например каталоги включения. Select one of the properties, such as Include Directories. Затем откройте раскрывающийся список значение свойства и выберите . Then, open the property value’s dropdown list, and choose . Откроется диалоговое окно Каталоги включения . The Include Directories dialog appears.
Нажмите кнопку макросы > > и прокрутите список макросов до Windows SDK макросов, чтобы просмотреть все новые значения. Choose the Macros >> button, and scroll down the list of macros to the Windows SDK macros to see all the new values.
При необходимости повторите процедуру перенаправления для других проектов решений и перестройте решение. Repeat the retargeting procedure for other solution projects, as needed, and rebuild the solution.
Изменение целевой платформы для пакета SDK для Windows 8.1 To target the Windows 8.1 SDK
Откройте контекстное меню узла проекта в обозреватель решений и выберите пункт перенацелить проекты. Open the shortcut menu for the project node in Solution Explorer, and choose Retarget projects. (В более ранних версиях Visual Studio выберите Изменить целевую версию пакета SDK.) (In earlier versions of Visual Studio, choose Retarget SDK Version.)
В раскрывающемся списке Версия целевой платформы выберите 8,1. In the Target Platform Version dropdown list, choose 8.1.
How to: Use the Windows 10 SDK in a Windows Desktop application
When you create a new classic Windows desktop project in Visual Studio, it targets the Windows 10 SDK by default. Visual Studio installs a version of this SDK when you install the C++ Desktop workload. The Windows 10 SDK supports writing code for Windows 7 SP1 and later. For more information about targeting specific versions of Windows, see Using the Windows Headers and Update WINVER and _WIN32_WINNT.
When you upgrade an existing project, you have a choice: You can keep using the target Windows SDK specified in your project. Or, you can retarget your project to use the Windows 10 SDK. With the Windows 10 SDK, you get the advantages of support for the latest operating systems and language standards.
Use the right Windows SDK for your project
Starting with Visual Studio 2015, the C Runtime (CRT) library was separated into two parts: One part, ucrtbase, contains the Standard C and Microsoft-specific CRT functions that you can use in Universal Windows Apps. This library is now known as the Universal CRT, or UCRT, and has moved into the Windows 10 SDK. The UCRT contains many new functions, such as C99 functions, needed to support the latest C++ language standards. The other part of the original CRT is vcruntime. It contains the C runtime support, startup, and termination code, and everything else that didn’t go into the UCRT. The vcruntime library gets installed along with the C++ compiler and toolset in Visual Studio. For more information, see CRT library features.
The UCRT is now a system component that’s installed on every version of Windows 10. It’s also available as an installable component for all earlier supported versions of Windows. You can use the Windows 10 SDK to target all the supported versions of Windows. For a complete list of supported operating systems, see Windows 10 SDK.
To retarget your projects to use the Windows 10 SDK when you upgrade from a project version before Visual Studio 2015, follow these steps:
To target the Windows 10 SDK
Make sure the Windows 10 SDK is installed. The Windows 10 SDK is installed as part of the Desktop development with C++ workload. A standalone version is available at Downloads and tools for Windows 10.
Open the shortcut menu for the project node, and choose Retarget projects. (In earlier versions of Visual Studio, choose Retarget SDK Version.) The Review Solution Actions dialog appears.
In the Target Platform Version dropdown list, choose the version of the Windows 10 SDK you want to target. Generally speaking, we recommend you choose the latest installed version. Choose the OK button to apply the change.
The 8.1 in this context refers to the Windows 8.1 SDK.
If this step is successful, the following text appears in the Output window:
Retargeting End: 1 completed, 0 failed, 0 skipped
Open the project properties dialog. In the Configuration Properties > General section, notice the values of Windows Target Platform Version. Changing the value here has the same effect as following this procedure. For more information, see General Property Page (Project).
This action changes the values of project macros that include paths to header files and library files. To see what changed, open the Visual C++ Directories section of the Project Properties dialog. Select one of the properties, such as Include Directories. Then, open the property value’s dropdown list, and choose . The Include Directories dialog appears.
Choose the Macros >> button, and scroll down the list of macros to the Windows SDK macros to see all the new values.
Repeat the retargeting procedure for other solution projects, as needed, and rebuild the solution.
To target the Windows 8.1 SDK
Open the shortcut menu for the project node in Solution Explorer, and choose Retarget projects. (In earlier versions of Visual Studio, choose Retarget SDK Version.)
In the Target Platform Version dropdown list, choose 8.1.
Архив Windows SDK и эмуляторов
В этом архиве содержатся выпуски и обновления пакета SDK для предыдущих версий платформ Windows и Windows Phone, а также выпуски эмулятора с поддержкой разработки и тестирования взаимодействия с пользователем на мобильных устройствах.
Последние выпуски Visual Studio и средств разработчика Windows 10 см. на странице Загружаемые файлы и инструменты для Windows 10.
Windows 10 версии 20H2 — это ограниченный набор функций для отдельных улучшений производительности и повышения качества. Разработчики должны знать об этом выпуске, но пока никаких действий не требуется.
Новый пакет Windows SDK для этой версии Windows выпущен не будет, так как в этом выпуске не вводятся новые API. Это означает, что нет необходимости вносить изменения в файлы проекта или задавать новую целевую версию Windows. Продолжайте использовать пакет Windows 10 SDK для Windows 10 (версия 2004). При указании целевой версии для приложения Windows версия Windows 10 (сборка 19041) по-прежнему является последней целевой версией.
Windows 10
Выпуск | |||
---|---|---|---|
Пакет SDK для Windows 10, версия 2004 (10.0.19041.0) | УСТАНОВИТЬ ПАКЕТ SDK | СКАЧАТЬ ISO-ФАЙЛ | |
Пакет SDK для Windows 10, версия 1903 (10.0.18362.1) | Выпущено вместе с Windows 10, версия 1903. | УСТАНОВИТЬ ПАКЕТ SDK | СКАЧАТЬ ISO-ФАЙЛ |
Пакет SDK для Windows 10, версия 1809 (10.0.17763.0) | Выпущено вместе с Windows 10, версия 1809. Включает служебные обновления 10.0.17763.132.
См. подробные сведения | УСТАНОВИТЬ ПАКЕТ SDK | СКАЧАТЬ ISO-ФАЙЛ |
Пакет SDK для Windows 10, версия 1803 (10.0.17134.12) | Выпущено вместе с обновлением Windows 10 за апрель (версия 1803). | УСТАНОВИТЬ ПАКЕТ SDK | |
Пакет SDK для Windows 10 (10.0.16299.91) и эмулятор устройства с Windows 10 Mobile (Майкрософт) (10.0.15254.1) | Выпущено вместе с обновлением Windows 10 Fall Creators Update (версия 1709). | УСТАНОВИТЬ ПАКЕТ SDK | УСТАНОВИТЬ ЭМУЛЯТОР |
Пакет SDK для Windows 10 (10.0.15063.468) и эмулятор устройства с Windows 10 Mobile (Майкрософт) (10.0.15254.1) | Выпущено вместе с обновлением Windows 10 Creators Update (версия 1703).
См. подробные сведения | УСТАНОВИТЬ ПАКЕТ SDK | УСТАНОВИТЬ ЭМУЛЯТОР |
Пакет SDK для Windows 10 (10.0.14393.795) и эмулятор устройства с Windows 10 Mobile (Майкрософт) (10.0.14393.0) | Выпущено вместе с обновлением Windows 10 Anniversary Edition (версия 1607). Это обновление, не связанное с безопасностью, направлено на повышение качества работы ОС.
| УСТАНОВИТЬ ПАКЕТ SDK | УСТАНОВИТЬ ЭМУЛЯТОР |
Пакет SDK для Windows 10 (10.0.10586.212) и эмулятор устройства с Windows 10 Mobile (Майкрософт) (10.0.10586.11) | Выпущено вместе с Windows 10, версия 1511. | УСТАНОВИТЬ ПАКЕТ SDK | УСТАНОВИТЬ ЭМУЛЯТОР |
Пакет SDK для Windows 10 (10.0.10240) и эмулятор устройства с Windows 10 Mobile (Майкрософт) (10.0.10240) | Выпущено вместе с Windows 10, версия 1507. Примечание. Во время установки отображается номер версии 10.0.26624. | УСТАНОВИТЬ ПАКЕТ SDK | УСТАНОВИТЬ ЭМУЛЯТОР |
Эмулятор Microsoft HoloLens | Запускайте приложения в среде Windows Holographic на виртуальной машине без HoloLens. Эта установка также содержит шаблоны голографических проектов DirectX для Visual Studio | УСТАНОВИТЬ ЭМУЛЯТОР |
Предыдущие выпуски
Выпуск | |||
---|---|---|---|
Пакет SDK для Windows 8.1 | УСТАНОВИТЬ ПАКЕТ SDK | ||
Средства разработки для Windows Phone 8.1 | УСТАНОВИТЬ ЭМУЛЯТОРЫ | ||
Обновление Windows Phone 8.1 и эмуляторы | УСТАНОВИТЬ ПАКЕТ SDK | ||
Пакет SDK для Windows Phone 8.0 | УСТАНОВИТЬ VISUAL STUDIO | ДОПОЛНИТЕЛЬНЫЕ ЯЗЫКИ | |
Эмуляторы пакета SDK для Windows Phone 8.0 с обновлением 3 | УСТАНОВИТЬ ЭМУЛЯТОРЫ | ДОПОЛНИТЕЛЬНЫЕ ЯЗЫКИ | |
Обновление пакета SDK 8.0 для Windows Phone 8.0.10322 | Добавляет четыре новых образа эмуляторов в существующий пакет SDK для Windows Phone 8.0. Для этого обновления требуется среда Visual Studio 2012 с пакетом SDK для Windows Phone 8.0 и обновлением 4 или более поздней версии либо среда Visual Studio 2013 с дополнительным пакетом SDK для Windows Phone 8.0 (выбирается во время установки). | УСТАНОВИТЬ ЭМУЛЯТОРЫ | ДОПОЛНИТЕЛЬНЫЕ ЯЗЫКИ |
Обновление пакета SDK для Windows Phone 7.8 | УСТАНОВИТЬ ЭМУЛЯТОРЫ | ДОПОЛНИТЕЛЬНЫЕ ЯЗЫКИ | |
Пакет SDK для Windows Phone 7.1 | УСТАНОВИТЬ ПАКЕТ SDK | ДОПОЛНИТЕЛЬНЫЕ ЯЗЫКИ | |
Обновление пакета SDK для Windows Phone 7.1.1 | УСТАНОВИТЬ ПАКЕТ SDK | ДОПОЛНИТЕЛЬНЫЕ ЯЗЫКИ | |
Пакет SDK для Windows 7 и .NET Framework 4 |