Geeks With Blogs

@RobboModemMan
  • RobboModemMan @gallifreyone Any chance you could invite India Fisher to the 2014 con, esp since she's in Light at the End? Would love to meet Charlie! about 318 days ago
  • RobboModemMan @jeffwilcox You better watch that balance or you're gonna overrun quickly </sarcasm> ;-) about 319 days ago

News
Robert Bernstein's Blog Adventures in Windows, .NET, and C++

Final Solution: I figured it out!  Open your project in VS2010, select the Project menu and choose Properties..., and click the dropdown next to Platform Toolset.  You can select between v100 (VS2010), v90 (VS2008), and Windows7.1SDK.  Select the 7.1 SDK and click OK.  Now you're all set.  Note that you can use v90 to build apps that compile for older versions of Windows as long as you have VS2008 already installed on your machine.

Visual Studio 2010 Project Properties

---------

The information below is just kept to remind me what I did.  It isn't terribly important.

---------

Update: I have found that the best way to utilize the V7.1 SDK is to launch VS2010 from a Windows V7.1 SDK Command Prompt.  If I find a better way, I will post it here.

So, I realized today that I'm still building against the v7.0A SDK that ships with Visual Studio 2010 (VS2010).  While not a crime, I wanted to make sure that I was building against the latest and greatest SDK.  To change the version of the current SDK in VS2010, follow these directions:

  1. In Visual Studio 2010, open a solution (.sln) file or create a solution.

  2. In Solution Explorer, right-click the solution node and then click Properties.

  3. In the Configuration list, select All Configurations.

  4. Under Configuration Properties, select General.

  5. As the Platform Toolset option, select Windows7.1SDK.

  6. Click OK.

(Copied from MSDN : http://bit.ly/do5OLY)

However, I found that this didn't completely solve my problem.  I had converted this VS2008 project to VS2010 before setting the SDK version and some of the project settings still pointed to the SDK V7.0A directories!  How frustrating!

The following environment variable directories within VS2010 had been updated correctly or added:

  • $(ExcludePath)
  • $(ExecutablePath)
  • $(IncludePath) -- mostly correct
  • $(LibraryPath)
  • $(PlatformToolset)
  • $(PlatformToolsetVersion)
  • $(WindowsSdkDir)
  • $(WindowsSdkMSBuildTools)
  • $(WindowsSdkNetFx35ToolsDir)
  • $(WindowsSdkNetFx40ToolsDir)
  • $(WindowsSDKVersionOverride)

But the following had not:

  • $(FrameworkSDKRoot)
  • $(SDK35ToolsPath)
  • $(SDK40ToolsPath)

I did find hard-coded references to the V7.0A directory in my solution's .suo file, so I deleted it; this did not correct the problem.

I found the following entries in the registry that pointed to my V7.0A entries:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0

  • FrameworkSDKRoot (REG_SZ)
    • $(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A@InstallationFolder)
  • SDK35ToolsPath (REG_SZ)
    • $(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A\WinSDK-NetFx35Tools-x86@InstallationFolder)
  • SDK40ToolsPath (REG_SZ)
    • $(Registry:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SDKs\Windows\v7.0A\WinSDK-NetFx40Tools-x86@InstallationFolder)

 

Posted on Friday, September 17, 2010 1:34 PM C++ , SDK , .NET , Visual Studio | Back to top


Comments on this post: Integrate the Windows SDK v7.1 with VS2010

# re: Integrate the Windows SDK v7.1 with VS2010
Requesting Gravatar...
Yes, but how do you change the SDK for a C# (WPF) project?

Also, without uninstall all of Visual Studio 2010, do you know how to install the SDK 7.1??
Left by El Loco on Jun 19, 2013 4:04 PM

# re: Integrate the Windows SDK v7.1 with VS2010
Requesting Gravatar...
SKYPE=ROCKY-TIGER-USA G-TALK=PRINCESS.JASMINE.WOOD@GMAIL.COM MSN LIVE=TIGER_0717@HOTMAIL.COM MSN LIVE=ROCKY_0717@YAHOO.COM MSN LIVE=ROCKY-TIGER@WINDOWSLIVE.COM QQ=859061471 AOL-AIM=ROCKY_TIGER@AOL.COM
Left by ROCKY-TIGER KING on Sep 13, 2013 8:47 AM

Your comment:
 (will show your gravatar)
 


Copyright © Rob | Powered by: GeeksWithBlogs.net | Join free