question

navidbizhe-9217 avatar image
0 Votes"
navidbizhe-9217 asked navidbizhe-9217 commented

error in all terminals visual studio 2019

when i use tools>command line>Developer command prompt
i get this error in the cmd:

Common7\Tools\VsDevCmd.bat not found

and when i use developer powershell i get this error inside powershell:

Write-Error 'Common7\Tools\Microsoft.VisualStudio.DevShell.dll not found' : Common7\Tools\Microsoft.VisualStudio.DevShell.dll not found At line:1 char:1 + & { Write-Error 'Common7\Tools\Microsoft.VisualStudio.DevShell.dll no ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException

also when i use View>Terminal i get this error inside the terminal:

Enter-VsDevShell : C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\....\ At line:1 char:82 + ... Shell.dll}; Enter-VsDevShell -SkipAutomaticLocation -SetDefaultWindow ... ~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [Enter-VsDevShell], ItemNotFoundException + FullyQualifiedErrorId : VsInstallationNotFound,Microsoft.VisualStudio.DevShell.Commands.EnterVsDevShellCommand

maybe useful to know i also have visual studio code
So what is the problem?

vs-generalvs-debuggingvs-setupvs-extensions
· 5
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.

You are calling out for Basic Access Token is this correct?

0 Votes 0 ·

Blockquote

Common7\Tools\VsDevCmd.bat










0 Votes 0 ·

I only tried to use basic Drop-down menus of visual studio itself like the following images:

77388-developer-command-prompt.png


77523-developer-powershell.png



it seem there is a problem with connecting to terminals, maybe something about paths or something like it.

0 Votes 0 ·

if I have understood you correctly, you want me to unrestrict polices. I did that as much as possible but nothing changed. still the same error happens.
77480-capture.png


0 Votes 0 ·
capture.png (3.8 KiB)

1 Answer

AnnaXiu-MSFT avatar image
1 Vote"
AnnaXiu-MSFT answered

Hi @navidbizhe-9217 , which release version of Visual Studio 2019 are you using? I suggest you update it to the latest version and repair your Visual Studio in your Visual Studio installer > More > Repair. Then, run your VS as administrator to check if it persists.

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.