Скачать microsoft visual c ++

Установка Visual Studio 2017Visual Studio 2017 Installation

В Visual Studio 2017 можно с легкостью выбрать и установить только необходимые компоненты.In Visual Studio 2017, it’s easy to choose and install just the features you need. Поскольку она занимает меньше памяти, она быстро устанавливается и при установке меньше влияет на систему.And because of its reduced minimum footprint, it installs quickly and with less system impact.

Предварительные требованияPrerequisites

  • Широкополосное подключение к Интернету.A broadband internet connection. Установщик Visual Studio может загрузить несколько гигабайт данных.The Visual Studio installer can download several gigabytes of data.

  • Компьютер под управлением Microsoft Windows 7 или более поздних версий.A computer that runs Microsoft Windows 7 or later versions. Для обеспечения оптимальной среды разработки рекомендуется использовать Windows 10.We recommend Windows 10 for the best development experience. Прежде чем устанавливать Visual Studio, убедитесь, что в системе установлены последние обновления.Make sure that the latest updates are applied to your system before you install Visual Studio.

  • Проверьте, что на диске достаточно свободного места.Enough free disk space. Для работы Visual Studio требуется не менее 7 ГБ дискового пространства, однако может потребоваться 50 ГБ или более, если установлены многие дополнительные компоненты.Visual Studio requires at least 7 GB of disk space, and can take 50 GB or more if many common options are installed. Рекомендуем установить Visual Studio на диск C.We recommend you install it on your C: drive.

Дополнительные сведения о дисковом пространстве и требованиях к операционной системе см. в разделе Требования к системе для семейства продуктов Visual Studio.For details on the disk space and operating system requirements, see Visual Studio Product Family System Requirements. Установщик сообщает, сколько места на диске требуется для установки выбранных дополнительных компонентов.The installer reports how much disk space is required for the options you select.

Размещение распространяемых файловLocate the redistributable files

Для развертывания распространяемых файлов можно использовать распространяемые пакеты, установленные Visual Studio.To deploy redistributable files, you can use the redistributable packages installed by Visual Studio. В версиях Visual Studio, начиная с 2017, эти файлы называются , и .In versions of Visual Studio since 2017, these files are named , , and . В Visual Studio 2015, Visual Studio 2017 и Visual Studio 2019 они также доступны под именами , и (только для 2015).In Visual Studio 2015, Visual Studio 2017, and Visual Studio 2019, they’re also available under the names , , and (2015 only).

Самый простой способ размещения распространяемых файлов — использовать переменные среды, заданные в командной строке разработчика.The easiest way to locate the redistributable files is by using environment variables set in a developer command prompt. В последней версии Visual Studio 2019 вы найдете распространяемые файлы в папке.In the latest version of Visual Studio 2019, you’ll find the redistributable files in the folder. В Visual Studio 2017 и Visual Studio 2019 они также находятся в .In both Visual Studio 2017 and Visual Studio 2019, they’re also found in . В Visual Studio 2015 эти файлы можно найти в , где — это языковой стандарт распространяемых пакетов.In Visual Studio 2015, these files can be found in , where is the locale of the redistributable packages.

Другой вариант развертывания — использовать распространяемые модули слияния ( файлы).Another deployment option is to use redistributable merge modules ( files). В Visual Studio 2019 эти файлы являются частью необязательного устанавливаемого компонента с именем » распространяемый компонент C++ 2019 МСМС » в Visual Studio Installer.In Visual Studio 2019, these files are part of an optional installable component named C++ 2019 Redistributable MSMs in the Visual Studio Installer. Модули слияния устанавливаются по умолчанию в рамках установки C++ в Visual Studio 2017 и Visual Studio 2015.The merge modules are installed by default as part of a C++ install in Visual Studio 2017 and Visual Studio 2015. При установке в последней версии Visual Studio 2019 можно найти распространяемые модули слияния в .When installed in the latest version of Visual Studio 2019, you’ll find the redistributable merge modules in . В Visual Studio 2019 и Visual Studio 2017 они также находятся в .In both Visual Studio 2019 and Visual Studio 2017, they’re also found in . В Visual Studio 2015 они находятся в .In Visual Studio 2015, they’re found in .

Потенциальные ошибки времени выполненияPotential run-time errors

Если Windows не удается найти одну из распространяемых библиотек DLL, необходимых для приложения, может отобразиться сообщение следующего вида: «не удалось запустить приложение, так как Библиотека DLL не найдена.If Windows can’t find one of the redistributable library DLLs required by your application, it may display a message similar to: «This application has failed to start because library .dll was not found. Переустановка приложения может устранить эту проблему. «Reinstalling the application may fix this problem.»

Чтобы устранить эту ошибку, убедитесь, что установщик приложения построен правильно.To resolve this kind of error, make sure your application installer builds correctly. Убедитесь, что распространяемые библиотеки правильно развернуты в целевой системе.Verify that the redistributable libraries get deployed correctly on the target system. Дополнительные сведения см. в разделе Основные сведения о зависимостях приложения Visual C++.For more information, see Understanding the Dependencies of a Visual C++ Application.

Распространяемые файлы и лицензированиеRedistributable files and licensing

При развертывании приложения необходимо также развернуть файлы, поддерживающие это приложение.When you deploy an application, you must also deploy the files that are required to support it. Если какие – либо из этих файлов предоставляются корпорацией Майкрософт, проверьте, разрешено ли их распространение.If any of these files are provided by Microsoft, check whether you’re permitted to redistribute them. Ссылка на условия лицензии Visual Studio находится в интегрированной среде разработки.You’ll find a link to the Visual Studio license terms in the IDE. Используйте ссылку условия лицензии в диалоговом окне о Microsoft Visual Studio.Use the License terms link in the About Microsoft Visual Studio dialog box. Или загрузите соответствующие лицензионные соглашения и лицензии из каталога лицензийVisual Studio.Or, download the relevant EULAs and licenses from the Visual Studio License Directory.

Чтобы просмотреть список Redist, указанный в разделе «распространяемый код» условий лицензионного соглашения на использование программного обеспечения Microsoft Visual Studio 2019, ознакомьтесь с разделом To view the «REDIST list» that’s referenced in the «Distributable Code» section of the Visual Studio 2019 Microsoft Software License Terms, see

Чтобы просмотреть список Redist, указанный в разделе «распространяемый код» условий лицензионного соглашения на использование программного обеспечения Microsoft Visual Studio 2017, ознакомьтесь с разделом .To view the «REDIST list» that’s referenced in the «Distributable Code» section of the Visual Studio 2017 Microsoft Software License Terms, see .

Чтобы просмотреть список Redist, указанный в разделе «распространяемый код» условий лицензионного соглашения на использование программного обеспечения Microsoft Visual Studio 2015, ознакомьтесь с разделом .To view the «REDIST list» that’s referenced in the «Distributable Code» section of the Visual Studio 2015 Microsoft Software License Terms, see .

Дополнительные сведения о распространяемых файлах см. в разделе Определение библиотек DLL для повторного распространения и примеров развертывания.For more information about redistributable files, see Determining which DLLs to redistribute and Deployment examples.

Развертывание в Microsoft Windows XPDeployment on Microsoft Windows XP

Visual Studio 2015 и Visual Studio 2017 по-прежнему поддерживают разработку программного обеспечения для использования в Microsoft Windows XP.Visual Studio 2015 and Visual Studio 2017 continue to support development of software for use on Microsoft Windows XP. Для поддержки этой разработки версия универсальной библиотеки CRT работает в Microsoft Windows XP.To support this development, a version of the Universal CRT does work on Microsoft Windows XP. Для операционной системы Microsoft Windows XP больше не предоставляется ни основная, ни расширенная поддержка, поэтому централизованное развертывание универсальной CRT в Microsoft Windows XP отличается от других операционных систем.The Microsoft Windows XP operating system is no longer in mainstream or extended support, so central deployment of the Universal CRT onto Microsoft Windows XP is different from other operating systems.

Если распространяемый компонент Visual C++ установлен в Windows XP, он непосредственно устанавливает универсальную CRT и все его зависимости в системный каталог.When the Visual C++ redistributable is installed on Windows XP, it directly installs the Universal CRT and all of its dependencies into the system directory. Он не устанавливается или не зависит от Центр обновления Windows.It doesn’t install or depend on any Windows Update. Распространяемые модули слияния — файлы Microsoft_VCверсияCRT*.msm — делают то же самое.The Redistributable merge modules, the Microsoft_VCversionCRT*.msm files, do the same.

Локальное развертывание универсальной CRT в Windows XP осуществляется так же, как и в других поддерживаемых операционных системах.Local deployment of the Universal CRT on Windows XP is the same as on other supported operating systems.

Установка Visual Studio 2015Visual Studio 2015 Installation

Чтобы установить Visual Studio 2015, перейдите на страницу для скачивания более ранних версий Microsoft Visual Studio.To install Visual Studio 2015, go to the Microsoft Visual Studio Older downloads page. Разверните раздел 2015 и нажмите кнопку Загрузка.Expand the 2015 section, and choose the Download button. Запустите скачанную программу установки и щелкните Выборочная установка, а затем выберите компонент C++.Run the downloaded setup program and choose Custom installation and then choose the C++ component. Чтобы добавить поддержку C и C++ в существующую установку Visual Studio 2015, нажмите кнопку «Пуск» Windows и введите Установка и удаление программ.To add C and C++ support to an existing Visual Studio 2015 installation, click on the Windows Start button and type Add Remove Programs. Откройте программу из списка результатов и найдите установку Visual Studio 2015 в списке установленных программ.Open the program from the results list and then find your Visual Studio 2015 installation in the list of installed programs. Дважды щелкните ее, а затем выберите Изменить и выберите компоненты Visual C++ для установки.Double-click it, then choose Modify and select the Visual C++ components to install.

Локальное развертываниеLocal deployment

Локальное развертывание универсальной CRT поддерживается, хотя и не рекомендуется по соображениям безопасности и производительности.Local deployment of the Universal CRT is supported, but not recommended for both performance and security reasons. Библиотеки DLL для локального развертывания входят в состав пакета Windows SDK и находятся в подкаталоге Kits\10\Redist\ucrt\DLLs согласно архитектуре компьютера.The DLLs for local deployment are included as part of the Windows SDK, in the Windows Kits\10\Redist\ucrt\DLLs subdirectory, by computer architecture. Требуемые библиотеки DLL содержат ucrtbase.dll и набор библиотек DLL переадресации APISet с именем api-ms-win-*.dll.The DLLs required include ucrtbase.dll and a set of APISet forwarder DLLs named api-ms-win-*.dll. Набор библиотек DLL, необходимых для каждой операционной системы, различается.The set of DLLs required on each operating system varies. Настоятельно рекомендуется включить все библиотеки DLL при развертывании локально.It’s highly recommended that you include all of the DLLs when you deploy locally.

Для локального развертывания существует два ограничения, которые следует учитывать:There are two restrictions on local deployment to be aware of:

  • В Windows 10 универсальная CRT, расположенная в системном каталоге, используется всегда, даже если приложение имеет собственную локальную копию универсальной CRT.On Windows 10, the Universal CRT in the system directory is always used, even if an application includes an application-local copy of the Universal CRT. Это справедливо даже в том случае, если локальная копия является более новой, поскольку универсальная библиотека CRT является основным компонентом операционной системы в Windows 10.It’s true even when the local copy is newer, because the Universal CRT is a core operating system component on Windows 10.

  • В версиях Windows до Windows 8 универсальную CRT нельзя упаковать локально с подключаемым модулем, если он находится в каталоге, отличном от каталога основного исполняемого файла приложения.On versions of Windows before Windows 8, the Universal CRT can’t be packaged locally with a plugin, if it’s located in a directory other than the directory of the main app executable. В этом случае библиотеки DLL сервера пересылки APISet не могут успешно разрешить ucrtbase.dll.The APISet forwarder DLLs are unable to resolve the ucrtbase.dll successfully in this case. К рекомендуемым альтернативным способам относятся следующие.Some recommended alternative solutions include:

    • Статическая компоновка универсальной CRT.Statically link the Universal CRT,
    • Централизованное развертывание универсальной CRT.Centrally deploy the Universal CRT, or
    • Помещение файлов универсальной CRT в один каталог с приложением.Place the Universal CRT files in the same directory as the app.

Установка распространяемых пакетовInstall the redistributable packages

Распространяемые пакеты Visual C++ позволяют устанавливать и регистрировать все библиотеки Visual C++.The Visual C++ Redistributable Packages install and register all Visual C++ libraries. Если вы используете его, запустите его в качестве необходимого компонента в целевой системе, прежде чем устанавливать приложение.If you use one, run it as a prerequisite on the target system before you install your application. Рекомендуется использовать эти пакеты для развертываний, поскольку они включают функцию автоматического обновления библиотек Visual C++.We recommend that you use these packages for your deployments because they enable automatic updating of the Visual C++ libraries. Пример использования этих пакетов см. в разделе Пошаговое руководство. Развертывание приложения Visual C++ с помощью распространяемого пакета Visual C++.For an example about how to use these packages, see Walkthrough: Deploying a Visual C++ Application By Using the Visual C++ Redistributable Package.

Каждый распространяемый пакет Visual C++ проверяет наличие более новой версии на компьютере.Each Visual C++ Redistributable Package checks for the existence of a more recent version on the machine. Если обнаружена более поздняя версия, пакет не будет установлен.If a more recent version is found, the package won’t get installed. Начиная с Visual Studio 2015, в распространяемых пакетах отображается сообщение о сбое установки.Starting in Visual Studio 2015, redistributable packages display an error message stating that setup failed. Если пакет выполняется с помощью флага, сообщение об ошибке не отображается.If a package is run by using the flag, no error message is displayed. В любом случае ошибка записывается установщиком Майкрософт, а результат ошибки возвращается вызывающему объекту.In either case, an error is logged by the Microsoft installer, and an error result is returned to the caller. Начиная с пакетов Visual Studio 2015 вы можете избежать этой ошибки, проверив реестр, чтобы узнать, установлена ли более новая версия.Starting in Visual Studio 2015 packages, you can avoid this error by checking the registry to find out if a more recent version is installed. Текущий номер установленной версии хранится в ключе.The current installed version number is stored in the key. Номер версии — 14,0 для Visual Studio 2015, Visual Studio 2017 и Visual Studio 2019, так как последний распространяемый пакет совместим с версией 2015.The version number is 14.0 for Visual Studio 2015, Visual Studio 2017, and Visual Studio 2019 because the latest redistributable is binary compatible with the 2015 version. Ключ — , или, в зависимости от установленных версий Vcredist для платформы.The key is , , or depending on the installed vcredist versions for the platform. ( Если вы используете Regedit для просмотра версии установленного пакета x86 на платформе x64, необходимо проверить подраздел.) Номер версии хранится в REG_SZ строковом значении , а также в наборе значений, , и .(You need to check under the subkey only if you’re using Regedit to view the version of the installed x86 package on an x64 platform.) The version number is stored in the REG_SZ string value and also in the set of , , , and values. Чтобы избежать ошибки во время установки, нужно пропустить установку распространяемого пакета, если только что установленная версия является более новой.To avoid an error at install time, you must skip installation of the redistributable package if the currently installed version is more recent.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *

Adblock
detector