question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dotnet CLI does not work properly in VS 22 Terminal?

See original GitHub issue

I made a test (blank) app targeting net6.0.

  1. It works great with dotnet CLI from cmd or powershell.
  2. It also works great when I run it from VS via GUI (F5 / Ctrl + F5).

However, if I open VS’ terminal, I get this: image

I have 6.0.100-preview.6.21355.2 installed. What could be the reason?

(sorry if it’s a wrong repo for this report. If so, tell me where to send it instead)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

github_iconTop Results From Across the Web

Visual Studio Code error - 'dotnet' is not recognized as an ...
The final fix for me was to click the "Kill Terminal" button and then open a new one. Apparently the terminal session can...
Read more >
Visual Studio Developer Command Prompt ...
Start from the Tools > Command Line menu. Select the Visual Studio Developer Command Prompt, Developer PowerShell, or terminal to use .NET ......
Read more >
Cannot debug net6.0-macos Apps - Developer Community
Another possible workaround is to uninstall dotnet from the Mac and then only reinstalling . Net 6 to prevent conflicts. This can be...
Read more >
How YOU can get started with .NET Core and C# in VS Code
This article covers your first steps using .NET Core, the cross-platform version of .NET. We will be creating a solution, a library, a...
Read more >
Cannot start vscode in WSL · Issue #6294
Shut down and restarted WSL. Seems to be continually happening. code command does however work inside a terminal with VScode.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found