39 Replies
$vscode
Follow the instructions here on getting started with DevKit for C# in VSCode: https://code.visualstudio.com/docs/csharp/get-started
Get started with C# and .NET in Visual Studio Code
Getting Started with C# and .NET Development in Visual Studio Code
I tried it
i even tried YT tutorials
I cant find a way to run my C# programm
i installed .NET
i installed all C# extenstions
what else do i neewd to do
Just press F5 and it should run
I see no errors there either
Saying "it does not run" is not sufficient, do you see an error message? What happens?
it wont work
@Networking is spooky save me pls
can we VC
i will share creen
Does
dotnet run
work?lemme try
yeah
it does
Also do you have the C# Dev Kit extension installed?
yeah
i have
why?
You need that one to debug
I think Dev Kit usually wants an sln file to be present? Try running
dotnet new sln
followed by dotnet sln add Programming.csproj
Oh also, try going to the command palette and searching for Generate assets
and execute the one called something like C#: Generate assets for debug
done
what is command pallete
did you check the Output window?
The big search bar at the top
Or you press ctrl+shift+p
and installing C# DevKit enables you to have a Solution Explorer which I don't see in the screenshot
well i have it installed
and what exactly happens when you press f5?
nothing
show screen after you've pressed f5
wait
actually
somehting
that thing on bottom right corner
odd
Because you have a project
ik
VC?
yo?
they probaly don't want / have time to VC
Yeah no, sorry
then
how
do i fix
please tell me i want to fix
can you start by closing VSC and opening the folder again
Prefer not to use VSCode, but use Visual Studio Community 2022
if possible yes
Way easier as it's a fully fledged IDE
VSCode requires a lot of manual work
Are you in the correct folder in the terminal? If so, have you tried dotnet build and then dotnet run?
plus, the output does not go to the Terminal tab, it goes onto the Debug Console
In my case it does go into terminal tab, but, then again I don't have any issues with VSCode 😄
it probably goes if you use
dotnet run
Ahh yes, that would explain it
Have you checked the "DEBUG CONSOLE" and "OUTPUT" tabs?
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.