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 trialZachary Allen
348 PointsConsole not returning anything is workspace
I am doing the C# path, and when i write my code and either say dotnet run in the console or do exactly what the instructor is doing to compile the code nothing happens. It doesn't return any output or any errors it just goes down a line and awaits input like i didn't type anything at all. To test this I have copied and pasted my exact code into visual studios, and it compiles without errors. I would like to be able to just use workspace,but it seems like every lesson the same problem persists.
1 Answer
Steven Parker
231,269 PointsAs caits suggested, the workspace environment is quite different from VS. The code is complied with the "mcs" command, and "mono" must be used to run the output file.
If you continue to have problems, you can use the "snapshot" function (the camera button) in the workspace to create a persistent link you can share here. With that, we can replicate your environment and take a closer look at the issue.
caits
4,578 Pointscaits
4,578 PointsHave you tried this? Example file is Program.exe. You'd type the command "mono Program.exe" in order to run it after compiling. I had trouble with using dotnet run, too, but this way always worked.