Visual studio windows sdk change

Как использовать пакет 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.

Читайте также:  Vpn маршрут windows server

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.

Читайте также:  Udp открывает порт linux

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 7,1 в автоматическом режиме

В этой статье описывается установка Microsoft Windows SDK для Windows 7 и .NET Framework 4 (Windows SDK 1.1 7.1) в автоматическом режиме.

Исходная версия продукта: Пакет SDK для Windows
Исходный номер статьи базы знаний: 2498225

Аннотация

Пакет Windows SDK для Windows 7 и .NET Framework 4 (Windows SDK версии 7.1) можно установить в автоматическом режиме.

Пакет обновления Windows SDK 1.1 должен быть установлен до установки Visual Studio 2010 SP1 (с пакетом обновления 1), если процесс установки выполняется в автоматическом режиме.

Платформы x86 и x64 Поддерживаемые операционные системы:

Windows XP с пакетом обновлений (SP3)

Windows 2003 Server

Windows 2003 Server R2

Windows 2008 R2

Другие необходимые компоненты: .NET Framework 2,0.

ЛИЦЕНЗИОНное соглашение (лицензионное соглашение) доступно в заметках о выпуске. Использование автоматической установки не инвертирует данное соглашение. Проверка для обеспечения соответствия требованиям.

Для автоматической установки Скачайте пакет SDK для ISO и извлеките файлы. Использование программы установки через Интернет не поддерживается для установки в автоматическом режиме.

Команда для выполнения автоматической установки: setup.exe -q -params:ADDLOCAL=ALL .

Платформа .NET Framework 4 необходима для установки всех компонентов в пакете SDK. Если платформа .NET Framework 4 не установлена, следующие компоненты не будут установлены:

Ссылки на сборки & IntelliSense

Средство разработки .NET

Справочная система Майкрософт

Все остальные компоненты будут по-прежнему устанавливаться до тех пор, пока платформа .NET Framework 2,0 установлена до установки пакета SDK.

Если в системе установлен Visual Studio 2010 с пакетом обновления 1 (SP1), установка завершится с ошибками. Во время установки не отображается сообщение об ошибке. Можно определить, что установка не удалась, либо просмотреть файл журнала установки пакета SDK или с помощью функции сбоя. Чтобы устранить эту проблемы, перед установкой пакета SDK необходимо удалить Visual Studio 2010 с пакетом обновления 1 (SP1).

Оцените статью