C
C#10mo ago
Slots

Dont know what i did, program now giving CS0101 and CS0111 errors.

Cant launch the debug thingamabob. How would I fix it?
No description
No description
21 Replies
Angius
Angius10mo ago
Do you have another file in the project? Another one with a Program class, perchance?
Slots
SlotsOP10mo ago
Let me check.
canton7
canton710mo ago
Yeah, the error message is fairly clear, and should be easy to figure out
Slots
SlotsOP10mo ago
Noope.
No description
Slots
SlotsOP10mo ago
No description
Slots
SlotsOP10mo ago
Nothing I can see besides my documentation. Documentation isnt in main project directory. It should be. Should.
canton7
canton710mo ago
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 window
i like chatgpt
i like chatgpt10mo ago
Share the Program.cs by dragging and dropping here.
Slots
SlotsOP10mo ago
Got it.
Slots
SlotsOP10mo ago
Slots
SlotsOP10mo ago
Im making a little code database Basic, but just something i wanna use to sort some shit out for me.
canton7
canton710mo ago
Can you post your .csproj?
canton7
canton710mo ago
<Compile Include="C:\Users\fnich\Downloads\Program.cs" Link="Program.cs" />
Slots
SlotsOP10mo ago
Grah That was the issue..
canton7
canton710mo ago
I'm guessing your .csproj isn't in C:\Users\fnich\Downloads?
Slots
SlotsOP10mo ago
It isnt.. I'll sort it out, i can see what the problem is now.
i like chatgpt
i like chatgpt10mo ago
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

</Project>
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>

</Project>
removing.
Slots
SlotsOP10mo ago
Reloading VS Fixed. Thank you for clearing this up!
i like chatgpt
i like chatgpt10mo ago
By the way, your Program.cs can be simplified as follows.
Slots
SlotsOP10mo ago
Thanks for that liberty.
Want results from more Discord servers?
Add your server