question

RoslynParker-0442 avatar image
0 Votes"
RoslynParker-0442 asked PengGe-MSFT edited

\Common was unexpected at this time - ERROR

When I run the following line from the command prompt I get the error "\Common was not expected at this time".
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\Build\vcvarsall.bat" amd64

I have just reinstalled VS2017 after uninstalling it. Before I uninstalled it I tried to repair it to see if that would help, but decided it would be best to start from scratch.

I have looked all over for ways to fix this and found two solutions but either work:
https://stackoverflow.com/questions/8756828/visual-studio-command-prompt-gives-common-was-unexpected-at-this-time/8756990
https://social.msdn.microsoft.com/Forums/en-US/56bdd445-adc6-46ab-a383-6714bdb2030d/visual-studio-2010-command-prompt-not-working?forum=vssetup

Are there any other solutions people have found for this issue?

Thank you!

vs-general
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

PengGe-MSFT avatar image
0 Votes"
PengGe-MSFT answered PengGe-MSFT edited

Hi @RoslynParker-0442

Welcome to Microsoft Q&A!

We need your help to collect logs.

  1. Open a normal CMD.

  2. Set VSCMD_DEBUG=3

  3. Run C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\Build\vcvarsall.bat > log.log

Upload it to https://onedrive.live.com/ then share the link here.(Please select Visible to the original poster & Microsoft option if you collect the log file and want to post the link as/in a comment)


Update

Sorry to reply to you after such a long time.

I researched your log and these two error messages seem to be the cause of the problem.

1). "C:\Users\rparker\Documents>echo [ERROR:vcvarsall.bat] Error in script usage. The correct usage is:
[ERROR:vcvarsall.bat] Error in script usage. The correct usage is:"
2). "C:\Users\rparker\Documents>echo Please make sure either Visual Studio or C++ Build SKU is installed.
Please make sure either Visual Studio or C++ Build SKU is installed."

I searched these two posts related to your problem, and it seems that the cause of the problem is system variables and registry key.

You can try to modify the corresponding registry value, please backup it before modifying.

Have you completely uninstalled Visual Studio 2017?
You can try to use this tool to completely uninstall Visual Studio 2017, and then reinstall it.

If your issue still persists, feel free to let me know.

Sincerely,
Peng


If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread


· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Any ideas? I posted the links in the comment below.

Thank you!

0 Votes 0 ·

Hi @RoslynParker-0442
I have updated my reply, please check it, thanks.

0 Votes 0 ·
RoslynParker-0442 avatar image
0 Votes"
RoslynParker-0442 answered RoslynParker-0442 edited

Thank you so much for your quick response!

Here is the link to the log.log file: https://cetinrec-my.sharepoint.com/:u:/g/personal/rparker_conceptsnrec_com/ETKxUEK2_w1Iv9FdCERhQwYBV4RbiUtdkI31-TYdsqU5xg?e=ovFMVB

Here is a link to the log amd64.log file. I created it because I will be using the amd64 option, but it gives the \Common error for all options I have tried too so: https://cetinrec-my.sharepoint.com/:u:/g/personal/rparker_conceptsnrec_com/ETl4fWM30RtDpw67p8aZmnkBKYUDafaJRWmCZsRJQeifoQ?e=r7d41s


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.