C
C#15mo 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
Angius15mo ago
Show $code
MODiX
MODiX15mo 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
Kouhai15mo ago
You probably typed console.Writeline It should be Console.WriteLine
cauカウッ
cauカウッOP15mo ago
hold on
cauカウッ
cauカウッOP15mo ago
x0rld 👻 🎃
x0rld 👻 🎃15mo ago
what's the error on test ?
cauカウッ
cauカウッOP15mo ago
ignore the last } yes I mean it says that the namespace Writeline does not exist in the namespace console
Angius
Angius15mo ago
That's the error you see when you place the cursor on Test...?
x0rld 👻 🎃
x0rld 👻 🎃15mo ago
wat
cauカウッ
cauカウッOP15mo ago
Angius
Angius15mo 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カウッOP15mo ago
this is the file in the project
x0rld 👻 🎃
x0rld 👻 🎃15mo ago
what is TestBase ?
cauカウッ
cauカウッOP15mo ago
I don't know
x0rld 👻 🎃
x0rld 👻 🎃15mo ago
it's supposed to be your code ?
Angius
Angius15mo ago
<a:what_devcord:609111054043054099>
cauカウッ
cauカウッOP15mo ago
should I just create a new code at this point? I might have messed it up
x0rld 👻 🎃
x0rld 👻 🎃15mo ago
delete testBase if you don't use it
cauカウッ
cauカウッOP15mo ago
k it worked thanks
Accord
Accord15mo 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.
Want results from more Discord servers?
Add your server