Visual Studio 2019/2017 Works with Win SDK 7.1

  • 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.

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

  • 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.
Select Platform Toolset

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.

Locate your VC in Visual Studio 10.0

Installed “atlmfc”

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\\\\"
  • Fix Compiler Errors, File Tracking Issue
<?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>
Open Property Manager
Add Existing Property Sheet…
<?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>

Others

You encountered an error in the execution of CL.exe. You should copy following files to VC folder.

Related Repository And Files

You can find all the relevant files on my GITHUB project. This will save you a lot of trouble.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store