C
C#5mo ago
super 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
Angius5mo ago
Do you have another file in the project? Another one with a Program class, perchance?
super slots
super slots5mo ago
Let me check.
canton7
canton75mo ago
Yeah, the error message is fairly clear, and should be easy to figure out
super slots
super slots5mo ago
Noope.
No description
super slots
super slots5mo ago
No description
super slots
super slots5mo ago
Nothing I can see besides my documentation. Documentation isnt in main project directory. It should be. Should.
canton7
canton75mo 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 chatgpt5mo ago
Share the Program.cs by dragging and dropping here.
super slots
super slots5mo ago
Got it.
super slots
super slots5mo ago
Im making a little code database Basic, but just something i wanna use to sort some shit out for me.
canton7
canton75mo ago
Can you post your .csproj?
canton7
canton75mo ago
<Compile Include="C:\Users\fnich\Downloads\Program.cs" Link="Program.cs" />
super slots
super slots5mo ago
Grah That was the issue..
canton7
canton75mo ago
I'm guessing your .csproj isn't in C:\Users\fnich\Downloads?
super slots
super slots5mo ago
It isnt.. I'll sort it out, i can see what the problem is now.
i like chatgpt
i like chatgpt5mo 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.
super slots
super slots5mo ago
Reloading VS Fixed. Thank you for clearing this up!
i like chatgpt
i like chatgpt5mo ago
By the way, your Program.cs can be simplified as follows.
super slots
super slots5mo ago
Thanks for that liberty.