The name "XYZ" does not exist in the namespace "clr-namespace:ABC"

I was working on creating some markup extensions and started to get very weird VS behaviours. I have extracted and pinpointed the issue in the separate solution. Problem is that VS can't create a CLR