C
C#•5mo ago
Jexs

Hi is this the same thing?

so im following this video https://www.youtube.com/watch?v=DAsyjpqhDp4 and i notice his files in his explorer are different then mine will coding still work ?
Travis Media
YouTube
How to Run C# in VSCode (Compile, Debug, and Create a Project)
Are you looking to learn C# but not sure how to run it in VSCode? Or are you tired of the Visual Studio bloat and want to do your C# or .NET development in a much lighter, Visual Studio Code? Well, in this video I'll show you, in under 5 minutes, how you can create a project, build, and debug your C# code inside of VSCode using the dotnet CLI....
No description
35 Replies
Jexs
JexsOP•5mo ago
also when i run the code it wont run
SleepWellPupper
SleepWellPupper•5mo ago
Are you on windows?
Jexs
JexsOP•5mo ago
Yes sir
SleepWellPupper
SleepWellPupper•5mo ago
Are you able to use Visual Studio instead of VS Code?
Jexs
JexsOP•5mo ago
im not its super laggy on my laptop
SleepWellPupper
SleepWellPupper•5mo ago
okay
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
you can reduce lags if you disable analyzers lagged for me as well
SleepWellPupper
SleepWellPupper•5mo ago
Did you follow the tut exactly? It seems to me you have opened the wrong folder in your VSCode workspace (bin folder)
Jexs
JexsOP•5mo ago
uh one sec
SleepWellPupper
SleepWellPupper•5mo ago
sorry, I meant obj folder You should have some folder containing a .sln (solution) file, that should probably be your workspace folder
Jexs
JexsOP•5mo ago
i think i opened the folder on the desktop were i created the file
SleepWellPupper
SleepWellPupper•5mo ago
What file? Did you use the dotnet cli to create your project? (sorry, I can't check the vid rn as I'm on mobile)
Jexs
JexsOP•5mo ago
this is the path that i have opened
No description
Jexs
JexsOP•5mo ago
uh i went to cmd and created them there
Jexs
JexsOP•5mo ago
theses are the files in here
No description
SleepWellPupper
SleepWellPupper•5mo ago
okay that's no good It seems the tut is teaching you obsolete stuff. I'd recommend you go to $helloworld and work through that.
Jexs
JexsOP•5mo ago
you want me to use the online ide instead of vss?
SleepWellPupper
SleepWellPupper•5mo ago
If that is not your style, here's something more along the lines of what you were trying to do: https://learn.microsoft.com/en-us/dotnet/core/tutorials/with-visual-studio-code?pivots=dotnet-8-0
Create a .NET console application using Visual Studio Code - .NET
Learn how to create a .NET console application using Visual Studio Code and the .NET CLI.
SleepWellPupper
SleepWellPupper•5mo ago
No, the first link uses an online ide to teach C#, it's only for demonstration/learning purposes
Jexs
JexsOP•5mo ago
okay
SleepWellPupper
SleepWellPupper•5mo ago
In general, you should stick to official MS documentation until you are comfortable with the ecosystem.
Jexs
JexsOP•5mo ago
How can i make this work tho? cause i feel like im going to go back with vs studio is there anyway possible like an updated version of this on youtube? im not asking you to search for it for me but do you think there is one
SleepWellPupper
SleepWellPupper•5mo ago
The third link is to a tutorial on how to create a dotnet application using VS Code. Is that not what you're trying to do?
Jexs
JexsOP•5mo ago
oh okay! sorry i'll take a look at this
Jexs
JexsOP•5mo ago
where would i find the terminal inhere?
No description
Jexs
JexsOP•5mo ago
oh found it
Jexs
JexsOP•5mo ago
it just gets stuck on this and doesnt generator a file
No description
Jexs
JexsOP•5mo ago
oh wait it created the file 😄
Jexs
JexsOP•5mo ago
i got to this point and i hit the play button but i dont see it print out
No description
SleepWellPupper
SleepWellPupper•5mo ago
try dotnet run in the terminal
Jexs
JexsOP•5mo ago
! i got it to work 😄 ty buddy to so much for the help give me one sec im going to close it and see if i can get it to work again
SleepWellPupper
SleepWellPupper•5mo ago
Very nice :)
Jexs
JexsOP•5mo ago
i was wondering if you could possible reccomend me to a site where i can learn the basics
SleepWellPupper
SleepWellPupper•5mo ago
those two links up top basically, just google C# getting started and dig into the microsoft pages
Want results from more Discord servers?
Add your server