C
C#•11mo 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•11mo ago
Is the CLR not configured or am I just lost now? 😆
Jimmacle
Jimmacle•11mo ago
do you have a project or just a cs file?
Asela
AselaOP•11mo ago
I would assume project
Asela
AselaOP•11mo ago
No description
Asela
AselaOP•11mo ago
I have this thing going on
Jimmacle
Jimmacle•11mo 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•11mo ago
Hmm, it says that Class1 is not in use I'm not sure what this could mean
Jimmacle
Jimmacle•11mo 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•11mo ago
No description
No description
Angius
Angius•11mo ago
Also, you have a class library, so not something that's runnable
Jimmacle
Jimmacle•11mo 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•11mo 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•11mo ago
No description
Asela
AselaOP•11mo ago
Ahhhh What's the difference between Console Applications and Class Libraries if I may ask
Angius
Angius•11mo ago
A class library is just that, a library
Asela
AselaOP•11mo ago
Other than one of them works and the other doesn't
Angius
Angius•11mo 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•11mo ago
Ahhhh Yeah that makes sense Thx
Want results from more Discord servers?
Add your server