❔ how do I fix error CS0234
Error CS0234 : (The type or namespace "Writeline" does not exist in the namespace "console" (are you missing an assembly reference?))
20 Replies
Show $code
To post C# code type the following:
```cs
// code here
```
Get an example by typing
$codegif
in chat
If your code is too long, post it to: https://paste.mod.gg/You probably typed
console.Writeline
It should be
Console.WriteLine
hold on
what's the error on test ?
ignore the last }
yes
I mean
it says that the namespace Writeline does not exist in the namespace console
That's the error you see when you place the cursor on
Test
...?Do you have other files in the project?
Perhaps ones that also contain a class
Test
and don't have a namespace declared?this is the file in the project
what is TestBase ?
I don't know
it's supposed to be your code ?
<a:what_devcord:609111054043054099>
should I just create a new code at this point?
I might have messed it up
delete testBase if you don't use it
k
it worked
thanks
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.