C
C#17mo 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
Pobiega17mo ago
What extension are you using? Is it the "C# Devkit"? if not, thats the one you want
J For Jetter
J For JetterOP17mo ago
Ok ill see Yes I have DevKit installed Do I need to uninstall "C# Godot"?
Pobiega
Pobiega17mo ago
I dunno. I don't use VSC myself
Thinker
Thinker17mo ago
Do you have a project?
Pobiega
Pobiega17mo ago
Ah yes, it looks like you opened just a .cs file
Thinker
Thinker17mo ago
I.e. did you open a folder with a csproj file in it?
Pobiega
Pobiega17mo ago
C# is project based, you need to open the project
J For Jetter
J For JetterOP17mo ago
Omfg im so dumb
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
reflectronic
reflectronic17mo ago
you do not need that with the C# dev kit
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For JetterOP17mo ago
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
reflectronic
reflectronic17mo ago
did you update the C# extension you need to update it to the preview version
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
Pobiega
Pobiega17mo ago
omnisharp error? doesnt that mean the old extension is still active?
ZacharyPatten
ZacharyPatten17mo ago
you need both extensions
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
ZacharyPatten
ZacharyPatten17mo 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 User17mo ago
Message Not Public
Sign In & Join Server To View
ero
ero17mo ago
it's 100% a saved file, it wouldn't have .cs otherwise
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For JetterOP17mo ago
what kind
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For JetterOP17mo ago
J For Jetter
J For JetterOP17mo ago
im so lost
ZacharyPatten
ZacharyPatten17mo 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
ZacharyPatten17mo ago
you need to install dotnet sdk
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For JetterOP17mo ago
i have that
ero
ero17mo ago
evidently not
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
ZacharyPatten
ZacharyPatten17mo ago
did you jsut install it?
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For JetterOP17mo ago
hm ok ill do it again
ZacharyPatten
ZacharyPatten17mo ago
you may need to restart VSC/terminal
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
ZacharyPatten
ZacharyPatten17mo ago
damn u lazy 😛
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For JetterOP17mo ago
this right?
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For JetterOP17mo ago
ok
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For JetterOP17mo ago
ok
J For Jetter
J For JetterOP17mo ago
This correct?
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For JetterOP17mo ago
ok but that right?
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For JetterOP17mo ago
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For JetterOP17mo ago
ok
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For JetterOP17mo ago
so now i can type the way longer version of that code and it'll work
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For JetterOP17mo ago
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For JetterOP17mo ago
I ran it and it didn't work ;-;
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For JetterOP17mo ago
am ik and i was showing you there was no problems
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For JetterOP17mo ago
J For Jetter
J For JetterOP17mo ago
im going to die X_X
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For JetterOP17mo ago
idk it just being dum
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For JetterOP17mo ago
oh hey i figured it out
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For JetterOP17mo ago
tysm can you give me a challenge and see if i can do it
ZacharyPatten
ZacharyPatten17mo ago
Make Half Life 3
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
MODiX
MODiX17mo 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 JetterOP17mo ago
bro never knew bout that
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For JetterOP17mo ago
BRO
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For JetterOP17mo ago
;-;
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For JetterOP17mo ago
im in way over my head i dont understand half of this
ZacharyPatten
ZacharyPatten17mo ago
did you run it?
J For Jetter
J For JetterOP17mo ago
yes nun happened
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For JetterOP17mo ago
oop
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
ZacharyPatten
ZacharyPatten17mo 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
ZacharyPatten17mo 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 JetterOP17mo ago
ZacharyPatten
ZacharyPatten17mo ago
yep you need "console": "externalTerminal", The Visual Studio Code debugger is trash
J For Jetter
J For JetterOP17mo ago
i can tell
ZacharyPatten
ZacharyPatten17mo ago
ZacharyPatten
ZacharyPatten17mo 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 User17mo ago
Message Not Public
Sign In & Join Server To View
ZacharyPatten
ZacharyPatten17mo ago
I'm talking about the debug console
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For JetterOP17mo ago
dude the amount of confusion im in is astronomical
ZacharyPatten
ZacharyPatten17mo ago
are you available to hop into a voice channel?
J For Jetter
J For JetterOP17mo ago
yuh but my pc mic dont work
ZacharyPatten
ZacharyPatten17mo ago
no worries. I can give you some pointers on using that repo with VSC in voice if you would like
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
J For Jetter
J For JetterOP17mo ago
ok
Unknown User
Unknown User17mo ago
Message Not Public
Sign In & Join Server To View
ZacharyPatten
ZacharyPatten17mo ago
#dev-vc-0
Denis
Denis17mo ago
This was a funny read
ZacharyPatten
ZacharyPatten17mo ago
Visual Studio Code is just a nightmare for new devs trying to learn C#... 😦
reflectronic
reflectronic17mo ago
i do not think that is true i think it was just severely overcomplicated
Accord
Accord17mo 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