❔ 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
Angius
Angius2y ago
Show $code
MODiX
MODiX2y ago
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/
Kouhai
Kouhai2y ago
You probably typed console.Writeline It should be Console.WriteLine
cauカウッ
cauカウッOP2y ago
hold on
cauカウッ
cauカウッOP2y ago
x0rld
x0rld2y ago
what's the error on test ?
cauカウッ
cauカウッOP2y ago
ignore the last } yes I mean it says that the namespace Writeline does not exist in the namespace console
Angius
Angius2y ago
That's the error you see when you place the cursor on Test...?
x0rld
x0rld2y ago
wat
cauカウッ
cauカウッOP2y ago
Angius
Angius2y ago
Do you have other files in the project? Perhaps ones that also contain a class Test and don't have a namespace declared?
cauカウッ
cauカウッOP2y ago
this is the file in the project
x0rld
x0rld2y ago
what is TestBase ?
cauカウッ
cauカウッOP2y ago
I don't know
x0rld
x0rld2y ago
it's supposed to be your code ?
Angius
Angius2y ago
<a:what_devcord:609111054043054099>
cauカウッ
cauカウッOP2y ago
should I just create a new code at this point? I might have messed it up
x0rld
x0rld2y ago
delete testBase if you don't use it
cauカウッ
cauカウッOP2y ago
k it worked thanks
Accord
Accord2y ago
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.

Did you find this page helpful?