© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•12mo ago•
34 replies
RdZoid

Console.Writeline throwing error CS0234 in one class but the program.cs in the same project doesn't.

Hello, I have a console app project where there is the default program.cs class where console.writeline works, but then I have a separate class within that same project where it doesn't work. It says WriteLine doesn't exist in the namespace.. are you missing a reference? Idk if I've ever had this happen especially when it works in another class within that project!

Adding in "using system;" just has it greyed out as if it's already using it.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Console.WriteLine
C#CC# / help
4y ago
Error CS0234
C#CC# / help
2y ago
global::System.Console.WriteLine(); error
C#CC# / help
3y ago
✅ Console.WriteLine Broken
C#CC# / help
4mo ago