When we are running our build through MSBuild, what context does the MSBuild run in/under?
The reason I am asking is because I have pre-build event that calls a command line program (ajax minification) that works perfectly if the project is build through VS2010 (on the same machine), but does not work when our build system (CCNet) is building it. The error i get is 9009, which means that its cant find the file. The command line program has a environment path set for its location (environment path is set through setx, maybe its only set for current user?), so calling only its name works perfectly in all cases other then when CCNet calls MSBuild.