Share via


\Microsoft was unexpected at this time.

Question

Thursday, March 15, 2018 1:11 AM

How do I get my Developer Command Prompt to run csc again?

When I open my Developer Command Prompt for VS it gives me this error within the window, "\Microsoft was unexpected at this time" I am new with Visual Studio and Command Prompt. 

All replies (1)

Friday, March 16, 2018 2:11 AM

Hi,

Welcome to MSDN forum.

It seems your PATH got modified recently and now contains some folder path with quotation marks inside. Please check how your PATH looks like, type echo %PATH% in command prompt and check it if there is one entry of PATH was indeed enclosed in double quotes. You just need to remove those double quotes and run the Developer Command Prompt again.

https://stackoverflow.com/questions/8756828/visual-studio-command-prompt-gives-common-was-unexpected-at-this-time

Best regards,

Joyce

Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected].