Thursday, 26 October 2017

MVC - Fix Error - The type or namespace name 'RequiredAttribute' could not be found (are you missing a using directive or an assembly reference?)

Watch this example on YouTube:



The type or namespace name 'RequiredAttribute' could not be found (are you missing a using directive or an assembly reference?)

to fix it add the following using
using System.ComponentModel.DataAnnotations;

No comments:

Post a Comment