Devenv broken after pscx installation

Topics: Developer Forum, User Forum
Oct 30, 2008 at 10:12 PM

I installed the pscx package and am unable to run devenv in powershell now.
My script is acting like it is ignoring the devenv statement.

I have this environment variable:
$vspath = ";C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE"

Then the code I am executing later is:
devenv (path to solution) /rebuild Release



It seems like it is trying to treat devenv as a poweshell command instead of the visual studio exe.
I have tried devenv.exe and that doesn't make a difference.
I also tried but this line complains about not knowing what version the solution is for.

Please assist.  What am I missing?

I had the same problem with my sourcesafe line:
$vsspath = ";C:\Program Files\Microsoft Visual SourceSafe"
ss Get
(sourcesafe project path) -R -Q -I-Y




But just adding .exe to worked:
ss.exe Get (sourcesafe project path) -R -Q -I-Y

Dec 2, 2008 at 3:49 PM
{{$env:path}} is the variable that powershell uses - the same as cmd.exe - to find programs. $vspath and $vsspath are used by other utilities. Add those paths to $env:path instead.