C
C#8mo ago
JEB

Debugging problems

Long story short, i was bored of python and wanted to expand my horizons, so i'm trying to learn C#., however, i don't know how to run my programs. ive gone down a couple rabbit holes and got to the point where VS says this. I honestly don't know where to go from here, so any help is appreciated.
No description
27 Replies
leowest
leowest8mo ago
well step 1 you create a project during step u choose what kind of project it will be
JEB
JEBOP8mo ago
I also justr noticed this
No description
leowest
leowest8mo ago
so for example
No description
leowest
leowest8mo ago
any of the first 3 will give u an exe when u build, run or publish the last one just gives u a dll to use along with other projects
JEB
JEBOP8mo ago
i didnr click ny of those lol
leowest
leowest8mo ago
well then how did u create your project? unlike python u dont run cs files or files individually u create a project and build the project
JEB
JEBOP8mo ago
i clicked "C# Project Template"
No description
leowest
leowest8mo ago
ok that explains it so what u want to do is a console project for start
JEB
JEBOP8mo ago
i figured lol
leowest
leowest8mo ago
and then u should be fine by just hitting f5 in visual studio and it will run and open the window as well as generate the exe to the folder u were in earlier
JEB
JEBOP8mo ago
got it
leowest
leowest8mo ago
give it a go and let me know if u have any issues along the way
JEB
JEBOP8mo ago
intellisense works now aswell
leowest
leowest8mo ago
$newproject
MODiX
MODiX8mo ago
When creating a new project, prefer using .NET over .NET Framework, unless you have a very specific reason to be using .NET Framework. .NET Framework is now legacy code and only get security fix updates, it no longer gets new features and is not recommended. https://cdn.discordapp.com/attachments/569261465463160900/899381236617855016/unknown.png
JEB
JEBOP8mo ago
ahh, so anything with (.net framework) is a no go
leowest
leowest8mo ago
its not that is a no go, but it will enter the legacy side of things so maintaining old tech stack basically
JEB
JEBOP8mo ago
i think ive heard of legacy code
leowest
leowest8mo ago
so if u dont have any attachments to it, do prefer non .net framework where u can
JEB
JEBOP8mo ago
got it
leowest
leowest8mo ago
latest version currently is .net 8 november we get .net 9
JEB
JEBOP8mo ago
ye, thats what i picked when making the project thx man
leowest
leowest8mo ago
everything ran fine?
JEB
JEBOP8mo ago
yup
leowest
leowest8mo ago
yw
MODiX
MODiX8mo ago
Use the /close command to mark a forum thread as answered
JEB
JEBOP8mo ago
was just a console writeline console readline
Want results from more Discord servers?
Add your server