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#

Workspace and VS

I write C# 90% of the time in VS, but sometime i do want to try Workspace, when i do the Project that i need to do in C# Basic, it works just fine in VS without errors, but when i copy exactly the same from the VS to the workspace, it has like 6 errors, something is wrong with the workspace and i use it because i can continue it in other computers.

3 Answers

Matthew Hill
Matthew Hill
7,799 Points

You can always download the files needed for the course from the download section on each video, and then incorporate that into your Visual Studio solution?

The REPL is available in Visual Studio by clicking View -> Other Windows -> C# Interactive (just for reference ?)

wow i it was just there, thank you so much man, i have searched it so long thanks for the help and that you took your time for answering me. have a good day. :D

Matthew Hill
Matthew Hill
7,799 Points

Hi Roee,

Could be the different compilers? Workspaces uses Mono, whereas Visual Studio uses Roslyn. I know the code is definitely represented differently in the respective REPLs from time to time.

Can you give an example of an error you've had doing this? Matt

For example my errors come that if i do "int minutes = int.Parse(entry); And then i do if and else if with minutes it marks them all in error (red). While in vs it just ok and yes i copy paste it so they are both the same

Nathan Williams
seal-mask
.a{fill-rule:evenodd;}techdegree
Nathan Williams
Python Web Development Techdegree Student 6,851 Points

This would be my guess as well. Since our backend for Workspaces is on Linux, we use Mono for "mostly there" compatibility. There's definitely some things you have to do in Windows with the full .NET suite available, though. Hopefully soon MS will make all of .NET Linux compatible :)

Matthew Hill
Matthew Hill
7,799 Points

But does it throw an exception? If not then it's purely to do with the IDE or REPL, nothing to do with your code

also i dont know if there is any REPL system in vs, couldnt find it, anyway if there was any cloud system so i can continue in other places

And i meant in VS