vs80vars.ps1 and non-default install locations

Topics: Developer Forum
Jan 3, 2007 at 5:39 PM
I recently discovered PSCX and I'm loving it.

One problem though...
vs80vars.ps1 doesn't work if VS2005 is installed in a non-standard location. (I have mine in D:\).

The patch below to fix it for me.

--- vs80vars.ps1 Fri Nov 24 15:43:18 2006
+++ vs80vars_mod.ps1 Wed Jan 03 20:16:08 2007
@@ -8,8 +8,8 @@
#
# . "$env:PscxHome\Scripts\vs80vars.ps1"
# ---------------------------------------------------------------------------
-$env:VSINSTALLDIR="$env:ProgramFiles\Microsoft Visual Studio 8"
-$env:VCINSTALLDIR="$env:ProgramFiles\Microsoft Visual Studio 8\VC"
+$env:VSINSTALLDIR=split-path(split-path($env:VS80COMNTOOLS))
+$env:VCINSTALLDIR="$env:VSINSTALLDIR\VC"
$env:DevEnvDir="$env:VSINSTALLDIR\Common7\IDE"
$env:FrameworkSDKDir="$env:VSINSTALLDIR\SDK\v2.0"
Developer
Jan 3, 2007 at 5:51 PM
thanks for reporting. we have rewritten the script entirely for 1.1 release. could you please download the latest sources and try it out?