'InitializeComponent' does not exist in the current context (hint: it does)
Hi,
I'm working on a project using WPF. I keep receiving this weird error saying
InitializeComponent
doesn't exist. This is a constant error that is reproduced by:
1, Creating a new project
Upon creating the project, the InitializeComponent
does show up as a valid method
2. Closing and restarting Visual Studios
When I reopen my project, I receive this error.
I have deleted and remade my project multiple times. What's weird is that the project builds normally, and deleting bin
and obj
folders also fixes it (though the next time I restart visual studios the error shows up again)
I am not sure whether this is a Intellisense bug, or anything. I've used Winforms before and I never had this issue. I searched online and tried different solutions but none of them offered a permament fix.3 Replies
plz ping me when anyone have a fix
nvm , it fixed itself! have a blessed day
$close
If you have no further questions, please use /close to mark the forum thread as answered