1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>.NET Framework SDK</title>
<meta http-equiv="Content-Language" content="en-us" />
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<link href="favicon.ico" rel="shortcut icon" type="image/x-icon" />
<link href="styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>Visual Studio 2010 C++ Express</h1>
<h2>Install Instructions for .NET Framework SDK</h2>
<p>
</p>
<p>
Following are instructions for installing the .NET Framework SDK in Visual Studio 2010 Express and adding x64
platforms to an existing project in a manner similar to the more expensive Visual Studio editions.</p>
<h4>Installing .NET Framework SDK</h4>
<p>
64-bit tools are not available in the Visual Studio 2010 C++ Express Edition by default. To enable 64-bit targets,
install the .NET Framework SDK in addition to the Visual Studio 2010 Express Edition. Otherwise, the x64 solution
platform is not available and a warning will occur if you open a project containing a 64-bit target.</p>
<p>
Install the <a href="http://www.microsoft.com/en-us/download/details.aspx?id=8279" target="_blank" title="open new window">
Windows SDK</a> appropriate for your operating system. Use the "Install Now" link to get the SDK. You can
optionally install the Windows Performance Toolkit, Debugging Tools, and Application Verifier. The Help is also
optional.</p>
<p>
After installing this package the x64 configurations can be created.</p>
<p>
IMPORTANT: If Visual Studio 2010 Service Pack 1 is applied after the .NET Framework SDK install, an additional
update is required to restore the Visual C++ compilers and libraries that may have been removed. Information is
available <a href="http://msdn.microsoft.com/en-us/vstudio//gg697159" target="_blank"
title="open new window">here</a>.</p>
<h4>Adding x64 to Project Files</h4>
<p>
Open a Win32 project. Open the Configuration Manager from the Build menu. In the Active Solution Platform select
New. For the New Platform select x64. You will need to “Copy settings from Win32” and check
“Create new project platforms”.</p>
<p>
Open the Properties from the Project menu. There is a new configuration property that needs to be set for the
linker to find the system libraries. Be sure the x64 platform is selected and change "Configuration Properties
> General
> Platform Toolset<strong>"</strong>, to <strong>Windows7.1SDK</strong>. Otherwise, you will get linker errors
such as "LINK : fatal error LNK1104: cannot open file 'kernel32.lib'". This setting can also optionally be used
for the Win32 platform.</p>
<p>
The x64 configuration can now be compiled, but the compiler will place the files in the same directories as the
Win32 compiles. To correct this, the x64 compiles should be placed in an x64 directory using the <strong>$(Platform)</strong>
macro.</p>
<p>
Add the $(Platform) macro to “Configuration Properties > General > Output directory” so the
entry becomes $(SolutionDir)<strong>$(Platform)\</strong>$(Configuration)\.</p>
<p>
Leave “Configuration Properties > General> Intermediate Directory” at the default which
should be <strong>$(Platform)\</strong>$(Configuration)\.</p>
<p>
Check the x64 Debug configuration “Configuration Properties > Linker > Debugging > Generate Program
Database File” for $(TargetDir)$(TargetName).pdb.</p>
<p>
Compile the project. If there are compile errors you may need to add the <strong>$(Platform)</strong> macro
to other settings as well. For example, if there are user library files the macro may need to be added to
“Configuration Properties > Linker > General > Additional Library Directories”.</p>
<p>
You should now be able to compile both Win32 and x64 platforms in a manner similar to the more expensive Visual
Studio editions.</p>
<p>
</p>
<p style="margin-left: -0.4in; text-align: center;">
<a href="http://sourceforge.net/projects/astyle">
Artistic Style on SourceForge.net</a></p>
<p>
</p>
</body>
</html>
|