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....
35 Replies
also when i run the code it wont run
Are you on windows?
Yes sir
Are you able to use Visual Studio instead of VS Code?
im not
its super laggy on my laptop
okay
you can reduce lags if you disable analyzers
lagged for me as well
Did you follow the tut exactly? It seems to me you have opened the wrong folder in your VSCode workspace (bin folder)
uh one sec
sorry, I meant obj folder
You should have some folder containing a .sln (solution) file, that should probably be your workspace folder
i think i opened
the folder on the desktop were i created the file
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)
this is the path that i have opened
uh i went to cmd and created them there
theses are the files in here
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.
you want me to use the online ide instead of vss?
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.
No, the first link uses an online ide to teach C#, it's only for demonstration/learning purposes
okay
In general, you should stick to official MS documentation until you are comfortable with the ecosystem.
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
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?
oh okay! sorry i'll take a look at this
where would i find the terminal inhere?
oh found it
it just gets stuck on this and doesnt generator a file
oh wait
it created the file 😄
i got to this point and i hit the play button but i dont see it print out
try
dotnet run
in the terminal!
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
Very nice :)
i was wondering if you could possible reccomend me to a site where i can learn the basics
those two links up top
basically, just google C# getting started and dig into the microsoft pages