Dont know what i did, program now giving CS0101 and CS0111 errors.
Cant launch the debug thingamabob. How would I fix it?
21 Replies
Do you have another file in the project?
Another one with a
Program
class, perchance?Let me check.
Yeah, the error message is fairly clear, and should be easy to figure out
Noope.
Nothing I can see besides my documentation.
Documentation isnt in main project directory.
It should be. Should.
Well, the compiler thinks you've got 2 classes called
Program
, and we can't see enough information to prove or disprove it
Look at the actual Output
windowShare the
Program.cs
by dragging and dropping here.Got it.
Im making a little code database
Basic, but just something i wanna use to sort some shit out for me.
Can you post your .csproj?
<Compile Include="C:\Users\fnich\Downloads\Program.cs" Link="Program.cs" />
Grah
That was the issue..
I'm guessing your .csproj isn't in
C:\Users\fnich\Downloads
?It isnt..
I'll sort it out, i can see what the problem is now.
removing.
Reloading VS
Fixed.
Thank you for clearing this up!
By the way, your
Program.cs
can be simplified as follows.Thanks for that liberty.