System.Web.Helpers not found in VS2015

天涯浪子 提交于 2019-11-29 09:17:10

This question is a bit old but here's a simple solution - Microsoft seemed to just move this library to a Nuget package called "microsoft-web-helpers". Installing that package seems to be equivalent to having the assembly.

SO used to be good

You cannot find it because of the simple fact that's not part of the Framework assemblies (what you are looking at).

It's part of the Extensions assemblies, and, as posted here, you will find it under "Extensions" in the left-hand side of the dialog.

Old question but might still help someone.

You must install MVC 3 in order to have the System.Web.Helpers Extension on VS2015.

link to download: https://www.microsoft.com/en-us/download/details.aspx?id=1491

I was wanting to work with JSON as well in an ASP.Net project using VS2015. I ended up here trying to find answers. Right about the time I finished reading the other answers on this post I noticed my project already had a reference to Newtonsoft.Json. Never heard of it before so I looked it up; I'm glad I did.

It was literally a one liner to Serialize a List<String> to JSON. You can pass in an Object so you should be able to serialize most any Object within reason.

Ultimately I didn't need to install MVC3 or reference System.Web.Helpers

Hope this helps!

NewtonSoft Serializing and Deserializing JSON

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!