That worked with my App.
Answer from dlchnr on learn.microsoft.comVisual Studio Code is not running on windows 11 Home Launch Failure and Not responding while working on it
I'm running Windows 11 24H2 and using Visual Studio 2022 Professional. When debugging my program, it fails with "Error while trying to run project: unable to start the program".
visual studio code - VSCode cannot open any folder on Windows 11 - Stack Overflow
windows - Win11: VSCode disappeared, and all attempts to reinstall hang on "setup is preparing to install visual studio code" - Stack Overflow
Videos
That worked with my App.
Hello @Chris Hurtig ,
Please try to clean some debugging related cache files first. Remove following, manually:
- Close VS, remove
bin,objand the hidden.vsfolder in your project folder. Restart VS, rebuild your project and then run/debug it. -
C:\Users\username\AppData\Local\Microsoft\VisualStudio\17.0_xxxxxxxx\ComponentModelCachefolder(remove/rename the ComponentModelCache folder, restart VS).
If the issue persists, consider repairing VS and resetting VS settings.
About repairing VS: VS Installer > More > Repair
About resetting VS settings: close VS and run devenv /ResetSettings in Developer Command Prompt for VS 2022.
I think it is related to windows 24H2, but canโt be sure.
I test locally, but till now, I fail to reproduce this issue.
Feel free to let us know the results.
Sincerely,
Tianyu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
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.
I ran into a similar problem, where a shortcut I had pinned to the taskbar no longer worked. Navigating to the file "location" I've found that a recent install of VS Code has added an additional directory "_" onto the path and moved the "Code.exe" file into this folder. Unclear as to why.
In any case, it might just be a case of checking it hasn't moved someplace else before a more lengthy diagnosis.
This just happened to me.
This is how I solved it, hope it helps!
runas /machine:x86 /trustlevel:0x20000 .\VSCodeUserSetup-x64-1.69.2.exe
Bit late to the punch, however you can use the shortcut Ctrl + Shift + M, which will open the problems pane.
You can use this command:
Ctrl+Shift+M
By the way, you can quickly jump to errors and warnings in the project.
Cycle through errors with:
F8 or Shift+F8
You can filter problems either by type ('errors', 'warnings') or text matching with the above search bar you'll see.
Another useful filter is 'Show Active File Only'
Reference here
no need of Unistalling, just go to your vscode-setup and reinstall it. (by this procedure all of your's settings, files , extensions etc.. will be restored as it is.)
Try this; it worked for me!
- Go to the Microsoft store.
- Install VS Code from there.
- An error message may appear.
- Open VS Code and wait.
my solution for this was to set it to always start as administrator, I don't feel like reinstalling vscode (newly installed) It's not a great solution for those who have multiple users, but I got rid of the error.
Ah, I saw that was a problem within User Permission, there were only 2 options checked. https://prnt.sc/uV-bF_q52Y3Y
I hope my solution will help you.
If you run your "vscode" as admin then you won't see this error anymore.
- Go to your "vscode" install location
- If not sure then open the start menu.
- Write vscode.
- Right click on the icon and click "Open File Location".
- In a new window there will be again an icon for the "vscode" right click on the icon
- Again and click "open file location".
- In another window, there will be an actual vscode's "exe" file.
- Right-click on this file and go to the "send" > "send on desktop" option.
- On the Desktop right-click on the icon and go to the properties
- Click on Advance Option and Check the "Run as Admin" Option
- Click Apply and Ok.
- Now if you want Right Click on this icon again and select "pin to taskbar".
Hopefully, you won't see this error again.
I am afraid you can't see the information in the "Error List" window. What you can do is to open "Output" windows (you find it in "View" menu or press Ctrl+W,O. The output will be not in the table form, but you will nevertheless see the information which you need:


Visual Studio 2015 has this feature:

I had this problem too. Deleting bin and obj folders not work. Cleaning solution not work. Various platform I need to be as is.
Helped me close solution and delete folder .vs, which is often full of problematic mess. After opening solution all false errors disappeared.
As mentioned in a comment, you can do a Clean and Rebuild. If that does not work for you, you can browse to the solution folder and within each of the project folders delete the bin and obj folders. Then perform a build.
You may also want to look into your Configuration Manager and ensure that all of your projects are set to the same Configuration (Debug/Release) and Platform (Any CPU/x86/etc...) and marked to build for that configuration.
Finally, you may also want to check the Build Order for your solution. Ensure that projects are all built in the proper order.
-- Edit:
On thing brought up in comments that I will add here was to make sure that any library projects in the solution are added as Project References rather than referencing the output DLL directly.
No commands work in VS Code since upgrade to Win11.
So I got a message that Windows (10) needed to restart to install updates. When it all finished I had Win 11, somewhat unexpectedly. Hey, ho.
But when starting vscode I saw that the extension icons on the blue status bar were missing. I've got php server extension installed and wanted to check a page, but when I clicked it I got the message "command 'extension.phpSrver.serveProject" not found.
The same happens with all extensions and commands.
I've reinstalled vscode; restarted the computer but the problem remains.