How to get EnumMember to work in ASP.net 5 using Visual Studio 2015

I have released the released version of Visual Studio 2015 and ASP.NET 5 Beta 6. I am trying to convert an existing website to a new ASP.net and have a simple listing for the US states, where I use EnumMember for the full state name.

The problem is that I need System.Runtime.Serialization for this, and I tried to include it in project.json with no luck. All the hits that I get on the Internet relate to the beta version of VS 2015 from last year.

I added "System.Runtime.Serialization": "4.0.10.0" to the dependency section, but I get a compilation error. DNX Error 4.5.1: The dependency System.Runtime.Serialization> = 4.0.10.0 could not be resolved.

What am I missing? It used to be easy to add links to the system, so I have to skip something. Intellisense helped with the name, but did not help with this version.

+4
source share
1 answer

Right click on your project → Add → Help .. → Assemblies → Mark System.Runtime.Serialization (I have version 4.0.0.0) → Ok

+4
source

All Articles