Welcome to MSDN Blogs Sign in | Join | Help

Troubleshooting sample building issues on X64, post 1

Are you having problems building some of the Windows Vista SDK samples on an X64 machine?  This is the first of a series of posts with workarounds to get you building.  I’ll be following up with more.  Have you found workarounds to other issues? Share them here or email me.

1.  Error that affects everyone building managed samples with the .NET Framework: SetEnv.cmd uses X86 framework

Problem:  A bug in the SDK build environment prevents x64 from pointing to the 64bit framework directory. (Invoking SetEnv.cmd with the /x86 parameter will cause the build environment to use the x86 frameworks.) To use the x64 frameworks you will need to update a file to point to the x64 framework. (This issue has been fixed in the Windows SDK for Microsoft Windows Server code name “Longhorn” and .Net Framework 3.5.). 

Workaround:  You will need administrator privileges to perform this. On Vista, Right click Notepad and run as Administrator. From within Notepad, open Bin\SetEnv.Cmd and change line number 204 from:

SET FxTools=%windir%\Microsoft.NET\Framework\v2.0.50727

to

SET FxTools=%windir%\Microsoft.NET\Framework64\v2.0.50727

save your changes to SetEnv.Cmd.

Karin Meier

Windows SDK Samples Program Manager

Published Saturday, April 21, 2007 1:05 AM by wsdkblog@microsoft.com
Filed under: , ,

Comments

# Troubleshooting sample building issues on X64, post 2

Having problems building some of the Windows Vista SDK samples on an X64 machine? This is the second

Saturday, April 21, 2007 11:20 AM by Microsoft Windows SDK Blog

# Troubleshooting sample building issues on X64, post 3

This is part of a series on troubleshooting buiding Windows Vista SDK samples on X64 machines. Read the

Sunday, April 22, 2007 1:29 PM by Microsoft Windows SDK Blog

# Troubleshooting sample building issues on X64, post 4

If you've hit some errors when building Windows Vista SDK samples on an X64 machines, you might find

Monday, April 23, 2007 11:08 AM by Microsoft Windows SDK Blog

# Troubleshooting Windows SDK Sample Building on X64

Are you having problems building some of the Windows Vista SDK samples on an X64 machine? Me too. That’s

Thursday, June 14, 2007 1:08 AM by ascend slowly, breathing normally

# Troubleshooting Windows SDK Sample Building on X64

Are you having problems building some of the Windows Vista SDK samples on an X64 machine? Me too. That

Saturday, January 12, 2008 5:51 PM by News
Anonymous comments are disabled
 
Page view tracker