C
C#11mo ago
cauカウッ

❔ 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
Angius11mo ago
Show $code
MODiX
MODiX11mo 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
Kouhai11mo ago
You probably typed console.Writeline It should be Console.WriteLine
cauカウッ
cauカウッ11mo ago
hold on
cauカウッ
cauカウッ11mo ago
x0rld
x0rld11mo ago
what's the error on test ?
cauカウッ
cauカウッ11mo ago
ignore the last } yes I mean it says that the namespace Writeline does not exist in the namespace console
Angius
Angius11mo ago
That's the error you see when you place the cursor on Test...?
x0rld
x0rld11mo ago
wat
cauカウッ
cauカウッ11mo ago
Angius
Angius11mo 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カウッ11mo ago
this is the file in the project
x0rld
x0rld11mo ago
what is TestBase ?
cauカウッ
cauカウッ11mo ago
I don't know
x0rld
x0rld11mo ago
it's supposed to be your code ?
Angius
Angius11mo ago
<a:what_devcord:609111054043054099>
cauカウッ
cauカウッ11mo ago
should I just create a new code at this point? I might have messed it up
x0rld
x0rld11mo ago
delete testBase if you don't use it
cauカウッ
cauカウッ11mo ago
k it worked thanks
Accord
Accord11mo 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.