First time creating an empty C# project
I'm trying to run my code but I'm a little lost. I use Rider IDE.
18 Replies
Is the CLR not configured or am I just lost now? 😆
do you have a project or just a cs file?
I would assume project
I have this thing going on
yeah that looks right, usually when something like this happens someone hasn't actually made a project
that does look like a .NET Framework project though
you should know that version is very outdated, though that's not directly related to your issue
Hmm, it says that
Class1
is not in use
I'm not sure what this could meanthat's normal
what happens if you click "add configuration" in the top right?
rider should add a default configuration but maybe it just didn't
Also, you have a class library, so not something that's runnable
ah yeah that'd do it
i wasn't focusing on the namespace your own sake you should just start over and create a .NET console application, not .NET Framework
Ah okay
I'll try my luck with that
I come from Java, C# seems already a bit different to me but I'm sure I won't have any problems with the syntax 😆
Just setting things up properly
Ahhhh
What's the difference between Console Applications and Class Libraries if I may ask
A class library is just that, a library
Other than one of them works and the other doesn't
You reference it in other projects and use it
On its own it cannot just run
Same way you can't just run... dunno what popular libs Java has, Hibernate?
You need to reference it in a runnable project first
Ahhhh
Yeah that makes sense
Thx