✅ VS Code with C# dev kit always shows an error when I reference another class in the same namespac
I always get these errors, even though the class I'm referencing exists in the scope. Is this just a VS Code visual issue?

32 Replies
Does the "create new file" option in VS Code not work the same as "Add > Class" in Visual Studio?
please show
BlogpostTag.cs

please show your project

you have the devkit installed, enabled, and the solution is open?


Yeah I think everything is in order
this doesn't show the solution being opened
F1 -> .NET: Open Solution

pressing the above, and nothing happens, the option is there though
okay, you have it open at the bottom on the left. open the Models folder there

it isn't there?
does it need to be committed to git hub before it shows?
no, that shouldn't be necessary
So I should only be creating files and all through the solution explorer?
also no
i'm a bit confused as to why it wouldn't pick up on that file
yeah, same here
can you maybe just delete
bin
and obj
and then reload the windowsure, let me try
vscode is my main ide for c# and i never use the solution explorer
and creating files through the file explorer works fine
that did work!
But obj and bin are now empty
that's fine, they'll be regenerated
obj shouldn't be empty
oh wairt
it isn't now
mhm
bin isa though. when i buildit will regen?
yup
ahh sound, thanks for the help man!
$close
If you have no further questions, please use /close to mark the forum thread as answered
You're awesome