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.
27 Replies
well
step 1 you create a project
during step u choose what kind of project it will be
I also justr noticed this
so for example
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
i didnr click ny of those lol
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
i clicked "C# Project Template"
ok that explains it
so what u want to do is a console project for start
i figured lol
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
got it
give it a go and let me know if u have any issues along the way
intellisense works now aswell
$newproject
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
ahh, so anything with (.net framework) is a no go
its not that is a no go, but it will enter the legacy side of things
so maintaining old tech stack basically
i think ive heard of legacy code
so if u dont have any attachments to it, do prefer non .net framework where u can
got it
latest version currently is .net 8
november we get .net 9
ye, thats what i picked when making the project
thx man
everything ran fine?
yup
yw
Use the /close command to mark a forum thread as answered
was just a console writeline console readline