Here's another workaround for building Windows Vista SDK samples on X64. Look for my earlier workaround posts and keep checking for more. New to 64-bit programming? Matt Pietrek's MSDN Magazine article, "Everything You Need To Know To Start Programming 64-Bit Windows Systems" will help.
4. Error: Msbuild Reports a Dependency upon the Microsoft .NET Framework SDK 2.0.
Problem: The Windows SDK does not set the HKLM\Software\Microsoft\.NETFramework\sdkInstallRootv2.0 registry key to a string value containing the root directory of the Windows SDK installation. However, some MSBuild tasks may expect this registry key to be set. If you already have the .NET Framework SDK 2.0 or Visual Studio 2005 installed, this key would be set and you should not encounter a problem. However, if you install the Windows SDK without either the .NET Framework SDK or Visual Studio 2005, you may receive an error message from MSBuild tasks with a dependency on this key.
Workaround: Set the string value of this key to the root directory of the Windows SDK installation. By default, this is: C:\Program Files\Microsoft SDKs\Windows\v6.0.
Windows SDK Samples Program Manager