Hi All,
I wanted to be able to run csc.exe and use VS symbols within a newly opened Command window without having to run vsvars32.bat each time.
I double-clicked vsvars32.bat from a Windows Explorer window, then opened a Command window and entered the command csc. I got the error message: 'csc' is not recognized as an internal or external command ...
I appended the command C:\PROGRA~1\MICROS~1.NET\Common7\Tools\vsvars32.bat to C:\Windows\System32\AutoExec.NT. After rebooting, I got the same error when executing csc in a new Command window.
To test the command I had appended, I pasted C:\PROGRA~1\MICROS~1.NET\Common7\Tools\vsvars32.bat in the window and executed it. Then csc was successful.
My recollection is that under Visual Studio 6.0 within Windows 2000 Pro, I just ran vcvars.bat in a command window and had environment variables set in a way that them defined in every subsequent command window.
What’s a straight-forward way of using vsvars32.bat to populate the environment?
TIA,
Richard Muller
I wanted to be able to run csc.exe and use VS symbols within a newly opened Command window without having to run vsvars32.bat each time.
I double-clicked vsvars32.bat from a Windows Explorer window, then opened a Command window and entered the command csc. I got the error message: 'csc' is not recognized as an internal or external command ...
I appended the command C:\PROGRA~1\MICROS~1.NET\Common7\Tools\vsvars32.bat to C:\Windows\System32\AutoExec.NT. After rebooting, I got the same error when executing csc in a new Command window.
To test the command I had appended, I pasted C:\PROGRA~1\MICROS~1.NET\Common7\Tools\vsvars32.bat in the window and executed it. Then csc was successful.
My recollection is that under Visual Studio 6.0 within Windows 2000 Pro, I just ran vcvars.bat in a command window and had environment variables set in a way that them defined in every subsequent command window.
What’s a straight-forward way of using vsvars32.bat to populate the environment?
TIA,
Richard Muller