C
C#•2y ago
Asela

First time creating an empty C# project

I'm trying to run my code but I'm a little lost. I use Rider IDE.
No description
18 Replies
Asela
AselaOP•2y ago
Is the CLR not configured or am I just lost now? 😆
Jimmacle
Jimmacle•2y ago
do you have a project or just a cs file?
Asela
AselaOP•2y ago
I would assume project
Asela
AselaOP•2y ago
No description
Asela
AselaOP•2y ago
I have this thing going on
Jimmacle
Jimmacle•2y ago
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
Asela
AselaOP•2y ago
Hmm, it says that Class1 is not in use I'm not sure what this could mean
Jimmacle
Jimmacle•2y ago
that'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
Asela
AselaOP•2y ago
No description
No description
Angius
Angius•2y ago
Also, you have a class library, so not something that's runnable
Jimmacle
Jimmacle•2y ago
ah yeah that'd do it i wasn't focusing on the namespace when your own sake you should just start over and create a .NET console application, not .NET Framework
Asela
AselaOP•2y ago
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
Angius
Angius•2y ago
No description
Asela
AselaOP•2y ago
Ahhhh What's the difference between Console Applications and Class Libraries if I may ask
Angius
Angius•2y ago
A class library is just that, a library
Asela
AselaOP•2y ago
Other than one of them works and the other doesn't
Angius
Angius•2y ago
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
Asela
AselaOP•2y ago
Ahhhh Yeah that makes sense Thx

Did you find this page helpful?