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