❔ ✅ Need help setting up Visual Studio

Hello, this is my first post 🙂 I'm trying to get started with C# by following Brackey's videos, but his VS Code looks different than mine, and I'd like to be able to follow along with him. I've implemented the '--use-program-main' to get it to look like his video, but now it's not properly debugging. I've read I should disable the use of top-level statements, but I don't know where to find that option. Here's the error screen I get after trying to run it. For reference, I installed VS Code and .NET 7.0
83 Replies
ero
ero2y ago
I've read I should disable the use of top-level statements
this isn't true
VanillaOreoz
VanillaOreozOP2y ago
Oh, ok. So what should I try? 😮 I just followed the link on Brackey's video and downloaded the first thing there
ero
ero2y ago
Brackeys
YouTube
HOW TO PROGRAM - Getting Started!
Coding can seem scary at first - but it's actually not that hard! Let's learn how to program in C#. ► SIGN UP FOR JASON'S COURSES: https://game.courses/gamearch/ ● Download VSCode: https://code.visualstudio.com/ ● Download .NET: https://dotnet.microsoft.com/ 👕Get the new Brackeys Hoodie: https://lineofcode.io/ ·······························...
ero
ero2y ago
it says right here that you need to change the console property
VanillaOreoz
VanillaOreozOP2y ago
Is VS Community better? I noticed the video is 3 years old
Fallen
Fallen2y ago
Pretty sure he just followed a 3y old tut, and doesn't know there is a difference between VS, VSC, VSDX, VSXXX or whatever versions there are
VanillaOreoz
VanillaOreozOP2y ago
OMG it works
Fallen
Fallen2y ago
Thank you, now why does his F5 key not debug, it just changes his youtube video's volume....
VanillaOreoz
VanillaOreozOP2y ago
Ero you beauty I'll check out VS Community
ero
ero2y ago
vscode is fine for c#
Fallen
Fallen2y ago
YT is full of bad tuts I guess?
VanillaOreoz
VanillaOreozOP2y ago
Well, I'm hoping the videos can get me through enough to get started c:
ero
ero2y ago
i guess the beginners thing i can see vsc only works as well for me as it does because i know the quirks
Fallen
Fallen2y ago
Does Community have a difference aconym becuase VSC (code) and (community) would have the same no?
ero
ero2y ago
vs and vsc no one specifies "community"
Fallen
Fallen2y ago
So about, that F5 key...? xD
ero
ero2y ago
what about it
Fallen
Fallen2y ago
Having him not use shortcuts makes me cringe. His F5 key doesn't debug, it just pulls up his audio volume for his youtube video?
ero
ero2y ago
that doesn't even make sense
Fallen
Fallen2y ago
You're telling me, the kid is a genius
ero
ero2y ago
for one, a keypress can't interact with the browser when it isn't focussed
SG97
SG972y ago
probably related to to function button actions(assuming laptop)
Fallen
Fallen2y ago
I'm just a messenger because he's keyboard challenged
ero
ero2y ago
and f5 refreshes a browser page so neither is even possible oh yeah this toggle fn lock
SG97
SG972y ago
it's toggleable ya
ero
ero2y ago
wow i wouldn't have thought of that don't use laptops enough
Fallen
Fallen2y ago
I thought it was a toggle but forgot that was a key, lemme see if he has this key
SG97
SG972y ago
I try to stay away too
Fallen
Fallen2y ago
Laptops haram or something?
SG97
SG972y ago
just shit in general
ero
ero2y ago
small keys, keypresses don't feel good weird layout
VanillaOreoz
VanillaOreozOP2y ago
Awww
Fallen
Fallen2y ago
Mechanical keyboards any good?
SG97
SG972y ago
some yes
ero
ero2y ago
love em
SG97
SG972y ago
prices of good ones have gone down though, which is nice
Fallen
Fallen2y ago
Okay so his FN key only works when he holds it and presses F5? any way to change that to an actual toggle ?
SG97
SG972y ago
which laptop
ero
ero2y ago
there should be some key that says "FnLock" on it or like an icon with a lock with "Fn" inside usually Escape
Fallen
Fallen2y ago
Yeah but it's functioning like ctrl I mean oh wait
Fallen
Fallen2y ago
ero
ero2y ago
yup, escape literally has the lock icon i talked about
Fallen
Fallen2y ago
Ah I see, shit's so blurry So does he press esc or?
ero
ero2y ago
he holds Fn and then presses esc
Fallen
Fallen2y ago
Bless Binary! It works
de4dot
de4dot2y ago
if you have a look at the error there is no console
VanillaOreoz
VanillaOreozOP2y ago
OMG, my f5 key works
de4dot
de4dot2y ago
to read an inpout from
ero
ero2y ago
thanks bud
de4dot
de4dot2y ago
You would prob have to compile it
Fallen
Fallen2y ago
I'm no good with these things, but it doesn't actually tell me where to go to fix the issue but we got it solved 😄
de4dot
de4dot2y ago
Or somehow interpret it since your using vsc Thats great!
Fallen
Fallen2y ago
Hello world displays and F5 works, this is a massive W. I am happy with this.
de4dot
de4dot2y ago
Hello world when your one of the only people who ive seen try and learn and then not gvive up instantly
Fallen
Fallen2y ago
This can only be a sign of things to come. It's his first lesson. LOLL
de4dot
de4dot2y ago
most people just die 😭
Fallen
Fallen2y ago
He's a trooper. I got passed Hello World but I died
de4dot
de4dot2y ago
salute
Fallen
Fallen2y ago
Ya'll always get me with the "What project do you wanna learn code for?"
de4dot
de4dot2y ago
so What project do you wanna learn code when
de4dot
de4dot2y ago
de4dot
de4dot2y ago
after effects so average
Fallen
Fallen2y ago
I'll legit write Bloomy.sln on my note as I commit. Don't tempt me
de4dot
de4dot2y ago
catgasp
Fallen
Fallen2y ago
I use AE but uh not following this...?
de4dot
de4dot2y ago
how much ram does AE use for you? ( I totally dont use cracked AE )
ero
ero2y ago
#offtopic...?
Fallen
Fallen2y ago
A shit ton sometimes Does cracked use more ram than normal?
de4dot
de4dot2y ago
idk i just got it off the pirate bay
VanillaOreoz
VanillaOreozOP2y ago
fr lol
Fallen
Fallen2y ago
It varies tbh... rn 5.4 GB, other day 27 GB
de4dot
de4dot2y ago
de4dot
de4dot2y ago
when a 2 minute video wtf
Fallen
Fallen2y ago
Not sure why such a huge difference but my pc has 64 gb, it was telling me I was out of ram when it said 32 GB so idk technology Try processing it using the onboard hardware in your cranium, lmk how much ram that uses lmaoo 2 min video will blow your mind xD
de4dot
de4dot2y ago
yup I understood that Definitely
ero
ero2y ago
!close
Accord
Accord2y ago
Ask the thread owner or member with permission to close this!
ero
ero2y ago
$close was the one
MODiX
MODiX2y ago
Use the /close command to mark a forum thread as answered
Fallen
Fallen2y ago
Mission 1: Complete
reflectronic
reflectronic2y ago
man the fix to the original issue was a one-line configuration change and your solution was to install an entirely different IDE
Sonath
Sonath2y ago
and one of the suggestions was Rider which has no free tier afaik
Accord
Accord2y 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