Share via

dotnet-run not recognized in Visual Studio Code

Anonymous
2025-02-11T12:07:47+00:00

I'm working on this: Oefening: de methoden van een .NET-klasse aanroepen - Training | Microsoft Learn

But now I'm stuck. It's telling me to do dotnet-run in the terminal and I get the following back:

dotnet-run : The term 'dotnet-run' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

At line:1 char:1

  • dotnet-run
  • 
    
  • CategoryInfo : ObjectNotFound: (dotnet-run:String) [], CommandNotFoundException
  • FullyQualifiedErrorId : CommandNotFoundException

I've got the latest version of .NET SDK installed, which is 9.0.102. Reinstalled this as well. Also downloaded Build Tools for Visual Studio. Restarted my device multiple times. I just cannot seem to figure out what is wrong and it's making my coding journey an irritating and frustrating experience.

I cannot seem to get it working on a totally different computer either. The version of my .net sdk is detected, but it's as if it's not actually integrated. I cannot get it to work.

I find it incredibly BS that this isn't integrated out of the box, btw.

Windows for home | Windows 11 | Settings

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

1 answer

Sort by: Most helpful
  1. Anonymous
    2025-02-18T06:30:10+00:00

    Hello, Dave Waltheer

    Welcome to the Microsoft community.

    Thank you for your feedback. I understand that you are experiencing issues with Visual Studio Code. Since you posted on the Windows board, this is beyond the scope of Microsoft Community support. it is more suitable for publishing on Microsoft Learn, more users post these issues there, you can click on "Ask a question", there are experts who can provide more professional solutions in that place.  

    Here is a link to the forum where you can raise specific scenarios and share your idea to help solve the problem.  

    Sincerely hope that your question will be dealt with appropriately after contact the correct department. Thank you for your understanding! 

    I look forward to your feedback.

    Best Regards,

    Aaron| Microsoft Community Support Specialist

    Was this answer helpful?

    0 comments No comments