This is really strange and inconsistent. Sometimes it runs fine and sometimes I get the following error
'The name 'InitializeComponent' does not exist in the current context'
There is absolutely no change in code and project settings. Just sometimes it runs and sometimes it throws this compilation error. How to resolve this?