I just created a new C# windows application project and noticed that some
of the Windows namespaces (System.Drawing, etc.) were unrecognized (underlined
I decided to close and re-open the solution to see if they would get recognized
again. I was left with a lone light bulb in the empty IDE. Clicking on
it gave a NullReference (or Null]]>) exception. When I loaded
the solution, everything was recognized correctly and the light bulb correctly
recognized the Optimize Usings feature and went away.
I think I might have had the cursor on the using statement when the solution
was closing which kept the light bulb available, but invalid. Has anyone
else run into this?