Internationalization in asp.net 5

What is the correct way to use internationalization in an Asp.net 5 MVC project?

If I try to decorate the model classes with DisplayName

for example Visual Studio gives me an error:

Severity Code Description Project File Line Error CS0246 The type or namespace name 'DisplayName' could not be found (are you missing a using directive or an assembly reference?) MyProject.DNX Core 5.0 C:\Users\paulo\Documents\Visual Studio 2015\Projects\MyProject\src\MyProject\Models\Post.cs 20

I can't even create a resource file in this type of project.

+3


source to share


1 answer


You need to specify and import the namespace that this attribute defines:



`using System.ComponentModel;`

      

-1


source







All Articles