❔ How do i set-up VS CODE!!! C# wont RUN IN IT

PLASE HELP
No description
39 Replies
Buddy
Buddy13mo ago
$vscode
MODiX
MODiX13mo ago
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
! ! 𓆩ᴍL𓆪 »꧁༺ 𝓈ςᵖ 166 ༻꧂ «༈ 🐺
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
Buddy
Buddy13mo ago
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?
! ! 𓆩ᴍL𓆪 »꧁༺ 𝓈ςᵖ 166 ༻꧂ «༈ 🐺
it wont work @Networking is spooky save me pls can we VC i will share creen
Thinker
Thinker13mo ago
Does dotnet run work?
Thinker
Thinker13mo ago
Also do you have the C# Dev Kit extension installed?
Thinker
Thinker13mo ago
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
! ! 𓆩ᴍL𓆪 »꧁༺ 𝓈ςᵖ 166 ༻꧂ «༈ 🐺
done what is command pallete
SG97
SG9713mo ago
did you check the Output window?
Thinker
Thinker13mo ago
The big search bar at the top Or you press ctrl+shift+p
SG97
SG9713mo ago
and installing C# DevKit enables you to have a Solution Explorer which I don't see in the screenshot
SG97
SG9713mo ago
and what exactly happens when you press f5?
SG97
SG9713mo ago
show screen after you've pressed f5
! ! 𓆩ᴍL𓆪 »꧁༺ 𝓈ςᵖ 166 ༻꧂ «༈ 🐺
that thing on bottom right corner
Thinker
Thinker13mo ago
odd Because you have a project
SG97
SG9713mo ago
they probaly don't want / have time to VC
Thinker
Thinker13mo ago
Yeah no, sorry
! ! 𓆩ᴍL𓆪 »꧁༺ 𝓈ςᵖ 166 ༻꧂ «༈ 🐺
then how do i fix please tell me i want to fix
SG97
SG9713mo ago
can you start by closing VSC and opening the folder again
Buddy
Buddy13mo ago
Prefer not to use VSCode, but use Visual Studio Community 2022
SG97
SG9713mo ago
if possible yes
Buddy
Buddy13mo ago
Way easier as it's a fully fledged IDE VSCode requires a lot of manual work
d3adin.
d3adin.13mo ago
Are you in the correct folder in the terminal? If so, have you tried dotnet build and then dotnet run?
SG97
SG9713mo ago
plus, the output does not go to the Terminal tab, it goes onto the Debug Console
d3adin.
d3adin.13mo ago
In my case it does go into terminal tab, but, then again I don't have any issues with VSCode 😄
SG97
SG9713mo ago
it probably goes if you use dotnet run
d3adin.
d3adin.13mo ago
Ahh yes, that would explain it
❤RieBi&❤
❤RieBi&❤13mo ago
Have you checked the "DEBUG CONSOLE" and "OUTPUT" tabs?
Accord
Accord13mo ago
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.
Want results from more Discord servers?
Add your server