C#C
C#15mo ago
Arto Kilponen

ViewFeatures, but something that isn't deprecated?

Trying to use this kind of code line:
public IEnumerable<SelectListItem> AuthorList { get; set; }

Works fine, if I have:
using Microsoft.AspNetCore.Mvc.Rendering;
and have installed:
Microsoft.AspNetCore.Mvc.ViewFeatures

This Microsoft.AspNetCore.Mvc.ViewFeatures is deprecated (All versions).

What should I use to replace it? Obviously the key being that I need that SelectListItem (or a replacement) from somewhere.
Was this page helpful?