Requirements
You'll need the following in order to correctly set up your development environment for working on CoApp:
- Git, putty, and a GitHub account -- see Getting setup with Git and GitHub
- Visual Studio 2010 (either VS2010 professional, or the free Visual C# Express and the free Visual C++ express )
- Windows SDK 7.1 Download
- Windows WDK Download
- Visual Studio SP1 Download
Note!
I only do development on an x64 install of Windows these days. Compiling the x64 parts of CoApp would be difficult, so if you're running on an x86 (32-bit) install of Windows, you're on your own.
Installation
Installation of the developer tools is fairly straightforward, with only one thing worth noting.
If you don't install the tools in the correct order, the SDK will often have troubles installing. I've warned you.
The order you should install the tools in:
- Visual Studio 2010 (Either the full professional/ultimate version or the two express versions)
- Windows SDK 7.1
- Windows WDK (we use this for the msvcrt library in the bootstrap module)
- Visual Studio SP1
Beyond that, I'd recommend that you just install it to the default locations and you should be good to go.
Compiling from the command line
Since Visual Studio and the SDK (and the WDK for that matter) install a "command prompt" you can use to compile from, we suggest using the one labeled "Windows SDK 7.1 Command Prompt"
From that prompt, you can switch from an 'x64' to an 'x86' configuration using the command:
C:\Program Files\Microsoft SDKs\Windows\v7.1> setenv /x86
Setting SDK environment relative to C:\Program Files\Microsoft SDKs\Windows\v7.1\.
Targeting Windows 7 x64 Debug
C:\Program Files\Microsoft SDKs\Windows\v7.1>_
and back:
C:\Program Files\Microsoft SDKs\Windows\v7.1> setenv /x64
Setting SDK environment relative to C:\Program Files\Microsoft SDKs\Windows\v7.1\.
Targeting Windows 7 x64 Debug
C:\Program Files\Microsoft SDKs\Windows\v7.1>_