2

I have a project I've been working on for a long time, and randomly today one of the designer.cs files is behaving strangely.

The following screen shot shows how the icon in Solution explorer does not appear as it should do.

enter image description here

When I open the corrupted frmCase.Designer.cs file all my code is there, but I notice that intellisense is not recognizing objects

enter image description here

Contrast with another Designer.cs file where intellisense colour codes the objects.

enter image description here

I have no idea what this has occurred, or how to rectify it. Could anyone please help me with this.

3
  • You forgot the screenshot Commented Jul 7, 2014 at 9:48
  • Is the partial keyword from the class definition header still there? Commented Jul 7, 2014 at 9:49
  • Yes the Namespace and partial class definition are still there Commented Jul 7, 2014 at 9:50

1 Answer 1

4

Right click on "fmCase.Desinger.cs" select "Include in project" should help you

Sign up to request clarification or add additional context in comments.

2 Comments

Oh thank you so much - so relieved it was an easy fix - but still at a loss as to how this happened in the first place.
I don't know, how does it happened, but links on all included files stored in 'csproj' file it can be corrupted in some way. Who knows.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.