Use Visual Studio Express 2013 for Web.
I do not know much about it, I've been learning in practice.
It indicates many errors as if my class had no given attribute.
I noticed that this happens mainly when you change a class by putting some more attribute. The new attribute does not seem to be interpreted.
And you see, if I have a build done, it does not give a mistake, the project is compiled in its entirety. I can run and nothing wrong will happen.
Minutes later, in the Error List, errors begin to appear indicating that those new attributes are not part of the class. And on the screen, in the View where that attribute was used, or in the Controller, it appears underlined indicating a possible error.
Now an example: This is my class:
public class ContaAReceber
{
[Key]
public int ID { get; set; }
[Required]
public int TipoReceitaID { get; set; }
public virtual TipoReceita TipoReceita { get; set; }
[Required]
public int CentroCustoID { get; set; }
public virtual CentroCusto CentroCusto { get; set; }
public int? HonorarioID { get; set; }
}
In the class it can be seen that there is an attribute HonorarioID.
Now look at the image of my VC showing as if there was no such attribute:
It is as if VS had written and compiled the class in its initial form and did not renew it.
Someone can tell me what's going on and how do I stop it.
Thank you in advance.