Windows sdk visual studio 2019

WinSDK71_VisualStudio2019

Get your Visual Studio 2019 (2017) to work with Windows SDK 7.1


Motivation

Windows SDK 7.1 first appeared in 2010.05. It has been 10 years since then. It was designed as an SDK for Windows 7, and many projects still use Windows 7 as the base support today. This is why these projects still want to use this 10 year old version as the most basic development base.

When Windows SDK 7.1 was released, the expected version of Visual Studio was VS2010, which is why SDK 7.1 projects always require VS 2010 support. This is also why it is so difficult to work with the latest versions of VS (2017 / 2019).

Let’s start looking at how to get your VS 2019 to work with the Windows 7.1 SDK without installing VS 2010.

Microsoft Windows SDK from WIKI

Microsoft Windows SDK Version Build Version Release Date Description
Included in Visual Studio 2010 v7.0a 6.1.7600.16385 2010-04-12 It is the latest version that officially supports Windows XP target.
Microsoft Windows SDK for Windows 7 and .NET Framework 4 v7.1 7.1.7600.0.30514 2010-05-19 Introduces the «v110_xp» platform toolset
Included in Visual Studio 2012 Update 1 (or later) v7.1A 7.1.51106

This is where we start discussing the possible problems. We will use Visual Studio 2019 as the default development tool and explain in detail how to compile Windows SDK 7.1 and Visual Studio 2010 Visual C++ MFC based projects using Visual Studio 2019 and runs on Windows 10.

List Challenges

  • Install Windows SDK 7.1
  • Working with Visual C++ 2010 Projects
    • Install «atlmfc» Visual C++ Files
    • Setup Visual C++ for Your System

Install Windows SDK 7.1

  • Download the Windows SDK 7.1. Microsoft Windows SDK for Windows 7 and .NET Framework 4 (ISO)

  • Mount the ISO file according your system.

    Windows SDK 7.1, ISO images

32 bits platform, please download GRMSDK_EN_DVD.iso and 64 bits platform, please download GRMSDKX_EN_DVD.iso.

  • Don’t run the default installer.

    Please don’t run the setup.exe in ISO folder. Run \setup\SdkSetup.exe.

  • Unselect Visual C++ Compilers and unselect redistributable Packages.

    WinSDK71-InstallSDK

    Since the VC 2010 runtime is no long compatible with Windows 10 and SDK, you should not install the old redistribution files. We will try to install new version later.

  • Install Windows VC 2010 SP1 Update for SDK 7.1 Microsoft Visual C++ 2010 Service Pack 1 Compiler Update for the Windows SDK 7.1 Download and Install VC-Compiler-KB2519277.exe.

  • Install VC 2010 SP1 Redistributable Packages.

    Microsoft Visual C++ 2010 SP1 Redistributable Package (x64)

    Microsoft Visual C++ 2010 SP1 Redistributable Package (x86)

    Download and Install «vcredist_x64(2010).exe» and «vcredist_x86(2010).exe«.

After these steps, Windows SDK 7.1 has been successfully installed on your Windows 10 system. You can start to use SDK to build and compile your C/C++ source code. But this is not our intention, we want the SDK to run perfectly with Visual Studio 2019. Now, select «Windows7.1SDK» in your Platform Toolset.

WinSDK71-SDK-PROP

Working with Visual C++ 2010 Projects

If your project is based on VC 2010, you need to access the «atlmfc» headers, libraries and binary files. These files are not included in Windows SDK 7.1 and VC Compiler update (VC-Compiler-KB2519277.exe). To overcome this problem, you need to install Visual C++ files.

Install «atlmfc» Visual C++ files

Open %ProgramFiles(x86)%\Microsoft Visual Studio 10.0\VC and there is no atlmfc. This means you can not build your Visual C++ project. To build the VC project, you need install atlmfc.

WinSDK71-ATLMFC-1

Due to the «license» issue, it is not possible to download atlmfc directly. you must copy and paste from another computer that already has VS 2010 installed. For my case, I copy the atlmfc from my test computer to this Visual Studio 2019 PC.

Copy and install atlmfc to %ProgramFiles(x86)%\Microsoft Visual Studio 10.0\VC so that your VC project could compile and link with atlmfc libraries.

Setup Visual C++ for Your System

After installing VC++ files, you should setup system registries for VS 2010 and your Visual Studio 2019 will find your installed VC 2010 automatically.

  • Update Visual Studio 2010 Registry Settings
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\\SOFTWARE\\WOW6432Node\\Microsoft\\VisualStudio\\10.0]
"Source Directories"="C:\\\\Program Files (x86)\\\\Microsoft Visual Studio 10.0\\\\VC\\\\crt\\\\src\\\\;;;"

[HKEY_LOCAL_MACHINE\\SOFTWARE\\WOW6432Node\\Microsoft\\VisualStudio\\10.0\\Setup]

[HKEY_LOCAL_MACHINE\\SOFTWARE\\WOW6432Node\\Microsoft\\VisualStudio\\10.0\\Setup\\VC]
"ProductDir"="C:\\\\Program Files (x86)\\\\Microsoft Visual Studio 10.0\\\\VC\\\\"

[HKEY_LOCAL_MACHINE\\SOFTWARE\\WOW6432Node\\Microsoft\\VisualStudio\\10.0\\Setup\\VS]
"ProductDir"="C:\\\\Program Files (x86)\\\\Microsoft Visual Studio 10.0\\\\"

Change the Visual Studio 2010 paths according your system.

Visual Studio 2019 uses «Microsoft.Cpp.Win32.Windows7.1SDK.targets» to probe your installed Windows SDK 7.1 and Visual C++ 2010. With above REG update, Visual Studio will read out your in VC paths and related variables properly and your old Visual C++ 2010 projects could be built successfully.

  • Fix Compiler Errors, File Tracking Issue

Visual Studio will track changes to your source files and related files. It needs to set up the tracer correctly so that file tracing will work properly.

To solve this problem, basically, we have two options. The first option is to disable this feature. The other option is to set the correct track parameters.

Disable File Track Feature:

If you don’t need this feature, then turning it off is the easiest option for you. Just turn off the «TrackFileAccess» parameter to solve the problem. We have already wrapped this function in a prop file. You just need to use it in your project.

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="<http://schemas.microsoft.com/developer/msbuild/2003>">
  <ImportGroup Label="PropertySheets" />
  <PropertyGroup>
    <_PropertySheetDisplayName>SDK7.1 Patch No Track</_PropertySheetDisplayName>
  </PropertyGroup>
  <PropertyGroup Label="Globals">
    <TrackFileAccess>false</TrackFileAccess>
  </PropertyGroup>
</Project>

View → Other Windows → Property Manager

WinSDK71-PROPMGT-1

Select «Add Existing Property Sheet…» and choose the property file.

WinSDK71-PROPMGT-2

Disadvantage: You will find that Visual Studio does not automatically detect file changes. You’ll have to manually recompile the file over and over again. If you change the code a lot, it can be very annoying.

Setup Correct Track Parameters

Another way is to set the TRACK parameters correctly. Again, we have prepared another prop file, you just have to reference to it and make sure that the location in the prop is compatible with your system.

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="<http://schemas.microsoft.com/developer/msbuild/2003>">
  <ImportGroup Label="PropertySheets" />
  <PropertyGroup>
    <_PropertySheetDisplayName>SDK7.1 Patch</_PropertySheetDisplayName>
  </PropertyGroup>
  <PropertyGroup Label="Globals">
    <TrackFileAccess>true</TrackFileAccess>
    <CLTrackerSdkPath>$(WindowsSdkNetFx4ToolsDir)</CLTrackerSdkPath>
    <LinkTrackerSdkPath>$(WindowsSdkNetFx4ToolsDir)</LinkTrackerSdkPath>
    <RCTrackerSdkPath>$(WindowsSdkNetFx4ToolsDir)</RCTrackerSdkPath>
    <ManifestTrackerSdkPath>$(WindowsSdkNetFx4ToolsDir)</ManifestTrackerSdkPath>	
  </PropertyGroup>
</Project>

Visual Studio 2019 RTM (a.k.a. 16.0) is now available for download, including the updated Community edition. The VS 2019 RTM Redistribution packages are also available (x86, x64), as well as the Remote Debugging Tools (x86, x64). For more information see the Visual Studio Team blog.

Updates older than 16.11 of Visual Studio 2019 are out of their support lifecycle as of October 2022.

Windows SDK: VS 2019 RTM defaults to installing the Windows 10 October 2018 Update SDK (17763). Older Windows SDKs can be selected as optional components.

IDE: See this post for some minor IDE productivity improvements.

New Project Dialog: Note that the start-up and ‘new project dialog’ experience has changed significantly for VS 2019. See this blog post.

Compiler and CRT

VS 2019 includes a new version of the C/C++ compiler (19.20.27508). The toolset has some important performance, compilation time and link time improvements specifically driven by games scenarios. Here is a list of optimizations from earlier VS 2019 previews. For updates on the C++17/C++20 conformance, see this post.

The C/C++ Runtime (14.20.25708) is binary compatible with VS 2015 Update 3 and VS 2017, which means you can safely link code built with VS 2015 Update 3 or VS 2017 with VS 2019. See this post for details.

The VS 2017 C/C++ Runtime DLLs included vcruntime140.dll, msvcp140.dll, msvcp140_1.dll, msvcp140_2.dll, concrt140.dll, and vccorlib140.dll. VS 2019 adds vcruntime140_1.dll. Use of OpenMP also requires vcomp140.dll.

VS 2019 can target Windows 10, Windows 8.1, Windows 7 Service Pack 1, and Windows Vista Service Pack 2. Note that the Visual C++ 2019 REDIST does not support Windows 8.0, Windows 7 RTM, Windows Vista RTM, Windows Vista Service Pack 1, Windows XP RTM, Windows XP Service Pack 1, or Windows XP Service Pack 2 as these platforms are all outside their support lifecycle. See Visual Studio 2019 Product Family System Requirements

OpenMP: See this post for details on OpenMP 4 SIMD experimental support in VS 2019.

C++20 The /std:c++latest switch enables support for C++20 draft features including partial support for operator <=> (i.e. “spaceship” operator). Experimental support for modules is also available.

Note that /std:c++latest is now incompatible with /clr and /ZW (C++/CX).

C++ Code Analysis: See this post and this one for news on the latest C++ code analysis (/analyze) work. There is also an in-editor analysis experimental feature you can try, and some additional C++ Core Checker features.

Windows XP: There is no support for building for Windows XP using the latest toolset. The C++ Windows XP Support for VS 2017 (v141) tools are available as an individual optional component in the VS 2019 installer. When building using the v141_xp Platform Toolset for Windows XP Service Pack 3 target support, remember this uses the Windows 7.1A SDK. The older SDK will generate some warnings in system headers with the new toolset that have to be externally suppressed. See VS 2012 Update 1 for some additional implications for DirectX development.

Xbox One XDK: The Xbox One XDK does not support the VS 2019 toolset. Microsoft GDK supports VS 2017 and VS 2019.

GitHub: The Direct3D Game templates have been updated to support VS 2019, and the Direct3DUWPGame.vsix now supports VS 2015, VS 2017, and VS 2019. I’ve also added VS 2019 projects to DirectX Tool Kit for DX11 / DX12, DirectXTex, DirectXMesh, UVAtlas, DXUT, and Effects11 in the April 2019 releases.

Known Issue: There is a known issue for VS 2019 RTM/Update 1/Update 2 when using my Direct3D Game project templates on GitHub. If you have VS 2017 installed as well, it works. Otherwise you need to edit your devenv.exe.config. See here for the details. This issue is fixed in Update 3.

Known Issue: There is a known issue with DirectXMath where the IsNan tests can fail when building with /fp:fast due to new optimizations. This is fixed when using DirectXMath 3.14 in combination with Update 3.

Related: VS 2019 Update 1, VS 2019 Update 2, VS 2019 Update 3, VS 2019 Update 4, VS 2019 Update 5, VS 2019 Update 6, VS 2019 Update 7, VS 2019 Update 8

Microsoft announced the availability of Windows 10 May 2020 Update SDK (Software Development Kit) with Go-Live license. That means the developers can now publish apps and games targeting Windows 10 version 2004 to the Microsoft Store.

Here’s everything that you would like to know about Windows 10 May 2020 Update SDK, and how to download the SDK Tools for Visual Studio.

You can now download the official SDK for the Windows 10 May 2020 Update (version 2004)

  • The SDK Tools for Windows 10 version 2004 goes live.
  • Developers can now build and publish apps targeting Windows 10 May 2020 Update.
  • Windows 10 SDK (10.0.19041) supports both Visual Studio 2017 and Visual Studio 2019.

How to download Windows 10 SDK (10.0.19041) for May 2020 update?

To install the Windows 10 SDK (10.0.19041), you need to first download the latest version of Visual Studio 2017 installer or the latest version of Visual Studio 2019 installer.

Now run the installer and select Universal Windows Platform development under Workloads and click Install. This will by default install the Windows 10 SDK (10.0.19041) once you are on the final release of Windows 10 May 2020 Update.

If you are on the Release Preview ring of Windows 10 May 2020 Update, run any one of the above Visual Studio installers and navigate to Individual Components | SDKs, libraries, and frameworks section. Check the Windows 10 SDK (10.0.19041) component and click Install.

What are the key features of Windows 10 SDK for the May 2020 update?

The latest version of Windows 10 SDK is loaded with new APIs. In addition to those new APIs, it now has the support for Windows Subsystem for Linux 2, which has significantly faster file IO performance.

In addition to that, applications can now declare themselves as a host for other applications via the new HostRuntime extension.

Applications can now also include a signed MSIX package in their existing installers and have their installers register it. This allows applications to keep their existing installers but still assign themselves identities.

Don’t let AI Agents fail in production

Restack backend framework provides long-running workflows and infrastructure for reliable & accurate AI agents.

Get started with example agents

Research Paper

Agent accuracy benchmark

Many enterprises are exploring AI agents, but one issue blocks their adoption: keeping them accurate and on brand. General-purpose LLMs hit only 51% accuracy, while fine-tuned small agents reach 99.7%.

Agent accuracy benchmark

The trust in AI is eroding due to unreliable, poorly designed agents. For AI to reach its full potential, we need better ones. Restack helps you build agents that are reliable, scalable, and ready for real-world use.

Features

The Restack framework

Build reliable and accurate AI agents with Restack.

Simulate, time travel and replay AI agents

Developer UI

Simulate, time travel and replay AI agents

The Restack developer toolkit provides a UI to visualize and replay workflows or individual steps. Open a favourite IDE like VS Code or Cursor on one side and view workflows on the other to improve debugging and local development.

Get started in seconds

Start building with Restack AI framework and deploy with Restack Cloud.

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Virtual printer for windows
  • Php получить имя пользователя windows
  • Windows car game download
  • Asus camera azurewave camera windows 10
  • Usb driver windows 98se