Меню Рубрики

Visual studio code windows xp

Настройка программ для Windows XP Configuring Programs for Windows XP

Visual Studio поддерживает несколько наборов инструментов платформы. Visual Studio supports multiple platform toolsets. Это означает, что можно использовать операционные системы и библиотеки среды выполнения, которые не поддерживаются набором инструментов по умолчанию. That means it’s possible to target operating systems and runtime libraries that aren’t supported by the default toolset. Например, путем переключения набора инструментов платформы вы можете использовать компилятор Visual Studio 2017 C++, чтобы создавать приложения для Windows XP и Windows Server 2003. For example, by switching the platform toolset, you can use the Visual Studio 2017 C++ compiler to create apps that target Windows XP and Windows Server 2003. Вы также можете применять наборы инструментов для старых платформ, чтобы обеспечивать совместимость прежнего кода на двоичном уровне, пользуясь при этом последними возможностями интегрированной среды разработки Visual Studio. You can also use older platform toolsets to maintain binary-compatible legacy code and still take advantage of the latest features of the Visual Studio IDE.

Набор инструментов v142, поставляемый в Visual Studio 2019 и более поздних версий, не поддерживает создание кода для Windows XP. The v142 toolset supplied in Visual Studio 2019 doesn’t include support for creating code for Windows XP. Поддержка разработки Windows XP с помощью набора инструментов v141_xp в Visual Studio 2017 доступна как отдельный компонент в установщике Visual Studio Installer. Support for Windows XP development by using the Visual Studio 2017 v141_xp toolset is available as an individual component option in the Visual Studio Installer.

Установка набора инструментов платформы Windows XP Install the Windows XP platform toolset

Чтобы получить набор инструментов платформы Visual Studio 2017 и компоненты для Windows XP и Windows Server 2003, запустите Visual Studio Installer. To get the Visual Studio 2017 platform toolset and components to target Windows XP and Windows Server 2003, run the Visual Studio Installer. При первоначальной установке Visual Studio или при изменении существующей установки убедитесь, что выбрана рабочая нагрузка Разработка классических приложений на C++ . When you initially install Visual Studio or when you modify an existing installation, make sure the Desktop development with C++ workload is selected. В списке дополнительных компонентов для этой рабочей нагрузки выберите Поддержка Windows XP для C++ , а затем Установить или Изменить. In the list of optional components for this workload, choose Windows XP support for C++, and then choose Install or Modify.

Чтобы получить набор инструментов платформы v141_xp и компоненты для Windows XP и Windows Server 2003, запустите Visual Studio Installer. To get the v141_xp platform toolset and components to target Windows XP and Windows Server 2003, run the Visual Studio Installer. При первоначальной установке Visual Studio или при изменении существующей установки убедитесь, что выбрана рабочая нагрузка Разработка классических приложений на C++ . When you initially install Visual Studio, or when you modify an existing installation, make sure the Desktop development with C++ workload is selected. На вкладке Отдельные компоненты в разделе Компиляторы, средства сборки и среды выполнения выберите Поддержка C++ Windows XP для средств VS 2017 (v141) [не рекомендуется] , а затем выберите Установить или Изменить. In the Individual components tab, under Compilers, build tools, and runtimes, choose C++ Windows XP Support for VS 2017 (v141) tools [Deprecated], and then choose Install or Modify.

Нацеливание на Windows XP Windows XP targeting experience

Набор инструментов для платформы Windows XP, включенный в Visual Studio, является версией пакета SDK для Windows 7, но использует текущий компилятор Visual Studio 2017 C++. The Windows XP platform toolset that’s included in Visual Studio is a version of the Windows 7 SDK, but it uses the Visual Studio 2017 C++ compiler. Он также присваивает свойствам проекта соответствующие значения по умолчанию. Например, он задает спецификацию совместимого компоновщика для нисходящего нацеливания. It also configures project properties to appropriate default values, for example, the specification of a compatible linker for down-level targeting. В Windows XP и Windows Server 2003 могут работать только классические приложения Windows, созданные с помощью набора средств платформы Windows XP. Only Windows desktop apps created by using a Windows XP platform toolset can run on Windows XP and Windows Server 2003. Эти приложения также могут работать в более новых операционных системах Windows. Those apps can also run on more recent Windows operating systems.

Нацеливание на Windows XP To target Windows XP

В обозревателе решений откройте контекстное меню своего проекта и выберите пункт Свойства. In Solution Explorer, open the shortcut menu for your project, and then choose Properties.

В диалоговом окне Страницы свойств проекта выберите Свойства конфигурации > Общие. In the Property Pages dialog box for the project, select Configuration Properties > General. Задайте в качестве значения свойства Набор инструментов платформы нужный набор инструментов Windows XP. Set the Platform Toolset property to your preferred Windows XP toolset. Например, выберите Visual Studio 2017 — Windows XP (v141_xp) , чтобы создать код для Windows XP и Windows Server 2003 с помощью компилятора Microsoft C++ в Visual Studio 2017. For example, choose Visual Studio 2017 — Windows XP (v141_xp) to create code for Windows XP and Windows Server 2003 by using the Microsoft C++ compiler in Visual Studio 2017.

Поддержка среды выполнения C++ C++ runtime support

Помимо набора инструментов платформы Windows XP, несколько библиотек включают поддержку среды выполнения для Windows XP и Windows Server 2003. Along with the Windows XP platform toolset, several libraries include runtime support for Windows XP and Windows Server 2003. Это следующие библиотеки: библиотека времени выполнения C (CRT), стандартная библиотека C++, библиотека шаблонных классов ATL, библиотека среды выполнения с параллелизмом (ConCRT), библиотека параллельных шаблонов (PPL), библиотека Microsoft Foundation Class (MFC) и библиотека C++ AMP (C++ Accelerated Massive Programming). These libraries are: the C Runtime Library (CRT), C++ Standard Library, Active Template Library (ATL), Concurrency Runtime Library (ConCRT), Parallel Patterns Library (PPL), Microsoft Foundation Class Library (MFC), and C++ AMP (C++ Accelerated Massive Programming) library. Поддерживаются следующие минимальные версии этих операционных систем: Windows XP с пакетом обновления 3 (SP3) для x86, Windows XP с пакетом обновления 2 (SP2) для x64 и Windows Server 2003 c пакетом обновления 2 (SP2) как для x86, так и для x64. For these operating systems, the minimum supported versions are: Windows XP Service Pack 3 (SP3) for x86, Windows XP Service Pack 2 (SP2) for x64, and Windows Server 2003 Service Pack 2 (SP2) for both x86 and x64.

Эти библиотеки поддерживаются наборами инструментов платформ, устанавливаемыми вместе с Visual Studio, в зависимости от целевой платформы: These libraries are supported by the platform toolsets installed by Visual Studio, depending on the target:

Библиотека Library Набор инструментов платформы по умолчанию для классических приложений Windows Default platform toolset targeting Windows desktop apps Набор инструментов платформы по умолчанию для приложений Store Default platform toolset targeting Store apps Набор инструментов платформы Windows XP для Windows XP и Windows Server 2003 Windows XP platform toolset targeting Windows XP, Windows Server 2003
CRT — библиотека CRT X X X X X X
Стандартная библиотека C++ C++ Standard Library X X X X X X
ATL ATL X X X X X X
ConCRT/PPL ConCRT/PPL X X X X X X
MFC MFC X X X X
C++ AMP C++ AMP X X X X

Приложения, написанные на C++/CLI и предназначенные для платформы .NET Framework 4, выполняются в Windows XP и Windows Server 2003. Apps that are written in C++/CLI and target the .NET Framework 4 run on Windows XP and Windows Server 2003.

Различия между наборами инструментов Differences between the toolsets

Из-за различий в поддержке платформ и библиотек процесс разработки приложений с помощью набора инструментов платформы Windows XP не так многофункционален, как в случае с приложениями, использующими набор инструментов платформы Visual Studio по умолчанию. Because of differences in platform and library support, the development experience for apps that use a Windows XP platform toolset isn’t as complete as for apps that use the default Visual Studio platform toolset.

Возможности языка C++ C++ language features

В приложениях, использующих набор инструментов платформы v110_xp, поддерживаются только те возможности языка C++, которые реализованы в Visual Studio 2012. Only C++ language features implemented in Visual Studio 2012 are supported in apps that use the v110_xp platform toolset. В приложениях, использующих набор инструментов платформы v120_xp, поддерживаются только те возможности языка C++, которые реализованы в Visual Studio 2013. Only C++ language features implemented in Visual Studio 2013 are supported in apps that use the v120_xp platform toolset. В приложениях, использующих набор инструментов платформы v140_xp, поддерживаются только те возможности языка C++, которые реализованы в Visual Studio 2015. Only C++ language features implemented in Visual Studio 2015 are supported in apps that use the v140_xp platform toolset. В приложениях, использующих набор инструментов платформы v141_xp, поддерживаются только те возможности языка C++, которые реализованы в Visual Studio 2017. Only C++ language features implemented in Visual Studio 2017 are supported in apps that use the v141_xp platform toolset. При сборке с помощью более старых наборов инструментов платформы среда Visual Studio использует соответствующий компилятор. Visual Studio uses the corresponding compiler when it builds using the older platform toolsets. Выберите более новый набор инструментов платформы Windows XP, чтобы воспользоваться реализованными в этой версии компилятора дополнительными возможностями C++. Use the most recent Windows XP platform toolset to take advantage of additional C++ language features implemented in that version of the compiler.

Удаленная отладка Remote debugging

Инструменты удаленной отладки для Visual Studio не поддерживают удаленную отладку в Windows XP или Windows Server 2003. Remote Tools for Visual Studio doesn’t support remote debugging on Windows XP or Windows Server 2003. Для локальной или удаленной отладки приложения, выполняющегося в Windows XP или Windows Server 2003, можно использовать отладчик из более ранней версии Visual Studio. To debug an app locally or remotely on Windows XP or Windows Server 2003, use a debugger from an older version of Visual Studio. Ситуация здесь схожа с отладкой приложений в Windows Vista, которые могут являться целью выполнения для набора инструментов платформы, но не могут являться целью удаленной отладки. It’s similar to debugging an app on Windows Vista, which is a runtime target of the platform toolset, but not a remote debugging target.

Статический анализ Static analysis

Наборы инструментов платформы для Windows XP не поддерживают статический анализ, так как примечания SAL для пакета SDK Windows 7 и библиотек времени выполнения несовместимы. The Windows XP platform toolsets don’t support static analysis because the SAL annotations for the Windows 7 SDK and the runtime libraries are incompatible. Вы по-прежнему можете выполнять статический анализ в приложении, которое поддерживает Windows XP или Windows Server 2003. You can still perform static analysis on an app that supports Windows XP or Windows Server 2003. Вы можете временно переключиться на набор инструментов платформы по умолчанию для анализа решения, а затем вернуться к набору инструментов платформы Windows XP для сборки приложения. Temporarily switch the solution to target the default platform toolset for the analysis, and then switch back to the Windows XP platform toolset to build the app.

Отладка графики DirectX Debugging of DirectX graphics

Так как отладчик графики не поддерживает API Direct3D 9, его нельзя применять для отладки приложений, использующих Direct3D, в Windows XP или Windows Server 2003. Because the Graphics Debugger doesn’t support the Direct3D 9 API, it can’t be used to debug apps that use Direct3D on Windows XP or Windows Server 2003. Однако если в приложении реализован альтернативный отрисовщик на основе API Direct3D 10 или Direct3D 11, с помощью отладчика графики можно диагностировать проблемы. However, if the app implements an alternative renderer based on Direct3D 10 or Direct3D 11 APIs, you can use the Graphics Debugger to diagnose problems.

Сборка HLSL Building HLSL

По умолчанию набор инструментов Windows XP не компилирует файлы с исходным кодом HLSL. The Windows XP toolset doesn’t compile HLSL source code files by default. Для компиляции файлов HLSL загрузите и установите пакет SDK DirectX за июнь 2010 года, а затем включите его в каталоги VC проекта. To compile HLSL files, download and install the June 2010 DirectX SDK, and then set the project’s VC directories to include it. Дополнительные сведения см. в разделе «Пакет SDK DirectX не регистрирует пути включения и пути к библиотекам в Visual Studio 2010» на странице загрузки пакета SDK DirectX за июнь 2010 года. For more information, see the «DirectX SDK Does Not Register Include/Library Paths with Visual Studio 2010» section of the June 2010 DirectX SDK download page.

Источник

Visual Studio Code on Windows

Installation

  1. Download the Visual Studio Code installer for Windows.
  2. Once it is downloaded, run the installer (VSCodeUserSetup-.exe). This will only take a minute.
  3. By default, VS Code is installed under C:\users\\AppData\Local\Programs\Microsoft VS Code .

Alternatively, you can also download a Zip archive, extract it and run Code from there.

Note: .NET Framework 4.5.2 or higher is required for VS Code. If you are using Windows 7, make sure you have at least .NET Framework 4.5.2 installed. You can check your version of .NET Framework using this command, reg query «HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\full» /v version from a command prompt.

Tip: Setup will add Visual Studio Code to your %PATH% , so from the console you can type ‘code .’ to open VS Code on that folder. You will need to restart your console after the installation for the change to the %PATH% environmental variable to take effect.

User versus system setup

VS Code provides both Windows user and system level setups. Installing the user setup does not require Administrator privileges as the location will be under your user Local AppData (LOCALAPPDATA) folder. User setup also provides a smoother background update experience.

The system setup requires elevation to Administrator privileges and will place the installation under Program Files.

See the Download Visual Studio Code page for a complete list of available installation options.

32-bit versions

If you need to run a 32-bit version of VS Code, both a 32-bit Installer and Zip archive are available.

Updates

VS Code ships monthly releases and supports auto-update when a new release is available. If you’re prompted by VS Code, accept the newest update and it will be installed (you won’t need to do anything else to get the latest bits).

Note: You can disable auto-update if you prefer to update VS Code on your own schedule.

Windows as a developer machine

Windows is a popular operating system and it can be a great cross-platform development environment. This section describes cross-platform features such as the Windows Subsystem for Linux (WSL) and the new Windows Terminal.

Recent Windows build

Make sure you are on a recent Windows 10 build. Check Settings > Windows Update to see if you are up-to-date.

Windows Subsystem for Linux

With WSL, you can install and run Linux distributions on Windows. This enables you to develop and test your source code on Linux while still working locally on your Windows machine.

When coupled with the Remote — WSL extension, you get full VS Code editing and debugging support while running in the context of WSL.

See the Developing in WSL documentation to learn more or try the Working in WSL introductory tutorial.

New Windows Terminal

Available from the Microsoft Store, the Windows Terminal (Preview) lets you easily open PowerShell, Command Prompt, and WSL terminals in a multiple tab shell.

Next steps

Once you have installed VS Code, these topics will help you learn more about VS Code:

  • Additional Components — Learn how to install Git, Node.js, TypeScript, and tools like Yeoman.
  • User Interface — A quick orientation to VS Code.
  • User/Workspace Settings — Learn how to configure VS Code to your preferences through settings.
  • Tips and Tricks — Lets you jump right in and learn how to be productive with VS Code.

Common questions

What command-line arguments are supported by the Windows Setup?

VS Code uses Inno Setup to create its setup package for Windows. Thus, all the Inno Setup command-line switches are available for use.

Additionally, you can prevent the Setup from launching VS Code after completion with /mergetasks=!runcode .

Scrolling is laggy and not smooth

On certain devices, editor scrolling is not smooth but laggy for an unpleasant experience. If you notice this issue, make sure you install the Windows 10 October 2018 update where this issue is fixed.

I’m having trouble with the installer

Try using the zip file instead of the installer. To use this, unzip VS Code in your AppData\Local\Programs folder.

Note: When VS Code is installed via a Zip file, you will need to manually update it for each release.

Icons are missing

I installed Visual Studio Code on my Windows 7 or 8 machine. Why are some icons not appearing in the workbench and editor?

VS Code uses SVG icons and we have found instances where the .SVG file extension is associated with something other than image/svg+xml . We’re considering options to fix it, but for now here’s a workaround:

Using the Command Prompt:

  1. Open an Administrator Command Prompt.
  2. Type REG ADD HKCR\.svg /f /v «Content Type» /t REG_SZ /d image/svg+xml .

Using the Registry Editor (regedit):

  1. Start regedit .
  2. Open the HKEY_CLASSES_ROOT key.
  3. Find the .svg key.
  4. Set its Content Type Data value to image/svg+xml .
  5. Exit regedit .

Источник

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

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

  • Visual studio 2010 windows 2000
  • Visual php для windows
  • Visual foxpro portable windows 7
  • Visual foxpro odbc driver windows 7 x64
  • Visual c windows forms учебник