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

keller greathouse
7,090 PointsRunning your code in C#
I forgot how to run my code in C#. Could someone show me how and provide an example or two? Thanks guys!
P.S: sorry this isn't in a specific discussion topic, I couldn't find a C# discussion area.
1 Answer

Steven Parker
240,995 PointsI noticed recently that some of the C# courses have been marked for retirement by July (2025). But the selection item for the topic no longer appears in the topics list for the courses or forum, and the topic is no longer shown in the achievements on individual profiles. So I suspected someone my have "jumped the gun" on removing these links. I've already reported this to the Support group, and they told me that topic area itself is not currently scheduled to be retired. So it's apparently just a bug and will hopefully be repaired soon.
But for the moment, the tracks are still working normally,
all of the courses are still here
C# Courses
and the C# forum area is still here
C# Community Forum
— I hope that doesn't change, even after retirement!
Now to answer your question, depending on which course there are two methods for running C# programs in the workspace. In older courses, a 2-step process was used to separately compile and execute:
mcs source_file(s) [ -out: executable_file ]
mono executable_file
Newer courses are dependent on project definition files and filesystem organization, but only require a single step:
dotnet run