API
API
CC#
Created by API on 8/4/2024 in #help
'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.
5 replies