csc.exe

Answered

Hi,

I'm trying to call a common line build step,  simply to compile a .cs class into a dll

I've configured this as a command line build step

I can see it run's under nt_authority\system user 

but csc is not found even though running the same script under the Admin user does work 

PATH does contain the location of csc.exe

[14:29:25][Step 1/5] Starting: E:\TeamCity\buildAgent\temp\agentTmp\custom_script8091744146024661713.cmd
[14:29:25][Step 1/5] in directory: E:\TeamCity\buildAgent\work\96eb26aa43ef0e29\path\Nunit
[14:29:25][Step 1/5] nt authority\system
[14:29:25][Step 1/5] 'csc' is not recognized as an internal or external command,
[14:29:25][Step 1/5] operable program or batch file.
[14:29:25][Step 1/5] Process exited with code 0
 
Any suggestions ?
 
Regards
 
 

 

 

0
1 comment
Avatar
Permanently deleted user

sorted, i needed to stop the build agent service and restart for the PATH variable to update 

Its now calling the c# compiler build step 

0

Please sign in to leave a comment.