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 C# Syntax Namespaces

I am not getting the errors the instructor is showing us when I apply the instructions in my Workspace for Namespaces.

So for the C# Basics video on Namespaces, I applied the changes to the code in the corresponding Workspace. I further created a UnitTest file to help me apply what that part of the instructions was showing me. I applied the using directive first and removed the System namespace from its occurrences in the code, then per the instructor's instructions I ran it in the Console. While the instructor's video is showing UnitTest errors, my Workspace is showing errors that the namespace name "VisualStudio" does not exist in the namespace Microsoft as below:

UnitTest1.cs(1,12): error CS0234: The type or namespace name 'VisualStudio ' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [/home/treehouse/workspace/workspace.csproj]
UnitTest1.cs(4,14): error CS0234: The type or namespace name 'VisualStudio ' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) [/home/treehouse/workspace/workspace.csproj]

The build failed. Please fix the build errors and run again.

I'm not sure why the errors on my code, which are what came with the Workspace for Namespaces and what I copied (typed) off of the UnitTest file into a new file on my Workspace, are different from what the video is showing.

Thanks!

1 Answer

Jennifer Nordell
seal-mask
STAFF
.a{fill-rule:evenodd;}techdegree
Jennifer Nordell
Treehouse Teacher

Hi, Ra Bha! I would really like to see a "snapshot" of your workspace to further help you. It sounds like the using statement is incorrect somehow, but I won't really be able to troubleshoot this without your code. Look forward to hearing back! :sparkles: