MSH: Configure MSH Like a VS 2005 Command Prompt

Assuming you have VS 2005 installed, just add the following to your profile:
 
# ———————————————————————
# Configure the environment to build under VS 2005 / .NET 2.0
# ———————————————————————
$env:VSINSTALLDIR="${env:ProgramFiles}\Microsoft Visual Studio 8"
$env:VCINSTALLDIR="${env:ProgramFiles}\Microsoft Visual Studio 8\VC"
$env:DevEnvDir="${env:VSINSTALLDIR}\Common7\IDE"
$env:FrameworkSDKDir="${env:VSINSTALLDIR}\SDK\v2.0"
 
$FrameworkPath=
    [Runtime.InteropServices.RuntimeEnvironment]::GetRuntimeDirectory()
$env:FrameworkDir=$(parse-path $FrameworkPath -Parent)
$env:FrameworkVersion=$(parse-path $FrameworkPath -Leaf)
 
$env:PATH="${env:VSINSTALLDIR}\Common7\IDE;${env:VCINSTALLDIR}\BIN;${env:VSINSTALLDIR}\Common7\Tools;${env:VSINSTALLDIR}\Common7\Tools\bin;${env:VCINSTALLDIR}\PlatformSDK\bin;${env:FrameworkSDKDir}\bin;${env:FrameworkDir}\${env:FrameworkVersion};${env:VCINSTALLDIR}\VCPackages;$env:PATH"

$env:INCLUDE="${env:VCINSTALLDIR}\ATLMFC\INCLUDE;${env:VCINSTALLDIR}\INCLUDE;${env:VCINSTALLDIR}\PlatformSDK\include;${env:FrameworkSDKDir}\include;$env:INCLUDE"

$env:LIB="${env:VCINSTALLDIR}\ATLMFC\LIB;${env:VCINSTALLDIR}\LIB;${env:VCINSTALLDIR}\PlatformSDK\lib;${env:FrameworkSDKDir}\lib;$env:LIB"

$env:LIBPATH="$FrameworkPath;${env:VCINSTALLDIR}\ATLMFC\LIB"

 
This will allow you to use all the normal VS 2005 Command Prompt command line tools.
Advertisements
This entry was posted in Monad. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s