C
C#13mo ago
J For Jetter

❔ Visual Studio Code being weird.

I just got back into coding using Visual Studio Code and I do a test to see if there's any extensions I need to install for C# is it something I did wrong because I click run and nothing comes out of the output. Am I using the wrong language?
105 Replies
Pobiega
Pobiega13mo ago
What extension are you using? Is it the "C# Devkit"? if not, thats the one you want
J For Jetter
J For Jetter13mo ago
Ok ill see Yes I have DevKit installed Do I need to uninstall "C# Godot"?
Pobiega
Pobiega13mo ago
I dunno. I don't use VSC myself
Thinker
Thinker13mo ago
Do you have a project?
Pobiega
Pobiega13mo ago
Ah yes, it looks like you opened just a .cs file
Thinker
Thinker13mo ago
I.e. did you open a folder with a csproj file in it?
Pobiega
Pobiega13mo ago
C# is project based, you need to open the project
J For Jetter
J For Jetter13mo ago
Omfg im so dumb
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
reflectronic
reflectronic13mo ago
you do not need that with the C# dev kit
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For Jetter13mo ago
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
reflectronic
reflectronic13mo ago
did you update the C# extension you need to update it to the preview version
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
Pobiega
Pobiega13mo ago
omnisharp error? doesnt that mean the old extension is still active?
ZacharyPatten
ZacharyPatten13mo ago
you need both extensions
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
ZacharyPatten
ZacharyPatten13mo ago
Also, you should really be using Visual Studio and not Visual Studio code if you are still learning C#. Visual studio Code is not beginner friendly for exactly reasons like this. But in short you need to add a .vscode/launch.json and .vscode/tasks.json files in the root of your folder
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
ero
ero13mo ago
it's 100% a saved file, it wouldn't have .cs otherwise
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For Jetter13mo ago
what kind
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For Jetter13mo ago
J For Jetter
J For Jetter13mo ago
im so lost
ZacharyPatten
ZacharyPatten13mo ago
Microsoft
Download .NET (Linux, macOS, and Windows)
Free downloads for building and running .NET apps on Linux, macOS, and Windows. Runtimes, SDKs, and developer packs for .NET Framework, .NET, and ASP.NET.
ZacharyPatten
ZacharyPatten13mo ago
you need to install dotnet sdk
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For Jetter13mo ago
i have that
ero
ero13mo ago
evidently not
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
ZacharyPatten
ZacharyPatten13mo ago
did you jsut install it?
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For Jetter13mo ago
hm ok ill do it again
ZacharyPatten
ZacharyPatten13mo ago
you may need to restart VSC/terminal
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
ZacharyPatten
ZacharyPatten13mo ago
damn u lazy 😛
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For Jetter13mo ago
this right?
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For Jetter13mo ago
ok
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For Jetter13mo ago
ok
J For Jetter
J For Jetter13mo ago
This correct?
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For Jetter13mo ago
ok but that right?
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For Jetter13mo ago
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For Jetter13mo ago
ok
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For Jetter13mo ago
so now i can type the way longer version of that code and it'll work
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For Jetter13mo ago
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For Jetter13mo ago
I ran it and it didn't work ;-;
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For Jetter13mo ago
am ik and i was showing you there was no problems
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For Jetter13mo ago
J For Jetter
J For Jetter13mo ago
im going to die X_X
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For Jetter13mo ago
idk it just being dum
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For Jetter13mo ago
oh hey i figured it out
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For Jetter13mo ago
tysm can you give me a challenge and see if i can do it
ZacharyPatten
ZacharyPatten13mo ago
Make Half Life 3
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
MODiX
MODiX13mo ago
Collections of application ideas that anyone can solve in any programming language to improve coding skills: https://github.com/dotnet/dotnet-console-games https://github.com/karan/Projects https://github.com/florinpop17/app-ideas
J For Jetter
J For Jetter13mo ago
bro never knew bout that
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For Jetter13mo ago
BRO
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For Jetter13mo ago
;-;
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For Jetter13mo ago
im in way over my head i dont understand half of this
ZacharyPatten
ZacharyPatten13mo ago
did you run it?
J For Jetter
J For Jetter13mo ago
yes nun happened
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For Jetter13mo ago
oop
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
ZacharyPatten
ZacharyPatten13mo ago
please clone the entire repo of dotnet-console-games rather than copy out the code one file at a time. if you clone the entire repo and open it you will see:
ZacharyPatten
ZacharyPatten13mo ago
all the games in the debug drop down you are probably missing "console": "externalTerminal", in your launch.json and that is why it may not be running the game
J For Jetter
J For Jetter13mo ago
ZacharyPatten
ZacharyPatten13mo ago
yep you need "console": "externalTerminal", The Visual Studio Code debugger is trash
J For Jetter
J For Jetter13mo ago
i can tell
ZacharyPatten
ZacharyPatten13mo ago
ZacharyPatten
ZacharyPatten13mo ago
open your launch.json file and add "console": "externalTerminal", that will tell Visual Studio Code to launch the app in an external console window rather then the internal debugger
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
ZacharyPatten
ZacharyPatten13mo ago
I'm talking about the debug console
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For Jetter13mo ago
dude the amount of confusion im in is astronomical
ZacharyPatten
ZacharyPatten13mo ago
are you available to hop into a voice channel?
J For Jetter
J For Jetter13mo ago
yuh but my pc mic dont work
ZacharyPatten
ZacharyPatten13mo ago
no worries. I can give you some pointers on using that repo with VSC in voice if you would like
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For Jetter13mo ago
ok
Unknown User
Unknown User13mo ago
Message Not Public
Sign In & Join Server To View
ZacharyPatten
ZacharyPatten13mo ago
#dev-vc-0
Denis
Denis13mo ago
This was a funny read
ZacharyPatten
ZacharyPatten13mo ago
Visual Studio Code is just a nightmare for new devs trying to learn C#... 😦
reflectronic
reflectronic13mo ago
i do not think that is true i think it was just severely overcomplicated
Accord
Accord12mo 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
More Posts