© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•16mo ago•
6 replies
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.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ Type shown that isn't present
C#CC# / help
4y ago
Imported a package, but using statement isn't working?
C#CC# / help
4y ago
Parallel.For but that doesn't allocate.
C#CC# / help
3y ago
Why is the struct allowed but the class isn't?
C#CC# / help
14mo ago