Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

C# C# Basics (Retired) Console I/O Start Coding

Greg Steed
Greg Steed
537 Points

Program running but no text appears.

I've checked the code, even copied and pasted from the lesson code. I've compiled it several times ('mcs Program.cs') and I've run it successfully ('mono Program.exe').

No errors were returned but no text appeared.

Please help. Thank you. :-)

https://w.trhou.se/rs7iy6s73b

Greg Steed
Greg Steed
537 Points

I've read through all the forum questions on this topic and followed all the suggestions I found but its still not working.

2 Answers

Iskander Ismagilov
Iskander Ismagilov
13,298 Points

I see no code in the Main method in Program.cs in the link you've provided. Program starts from that method, so use System.Console.Write("write smth to user") in it.

Greg Steed
Greg Steed
537 Points

Thank you. It helped to know you couldn't see any code. I pasted in everything as before like I did several times. Its working. The only thing I did differently was to go to File>Save.

Thanks a bunch. I was super frustrated but now I can move forward :-)

"File-> Save" should have been emphasized and it would have saved me 30 minutes of my life.