Home » c# » Where can I find System.Web.Helpers, System.Web.WebPages, and System.Web.Razor?

Where can I find System.Web.Helpers, System.Web.WebPages, and System.Web.Razor?

Posted by: admin November 30, 2017 Leave a comment

Questions:

I am following this article on RazorGenerator and it say’s that I must add references to:

  • System.Web.Helpers.dll
  • System.Web.WebPages.dll
  • System.Web.Razor.dll

The only one I can see when I do Add Reference is System.Web.Razor, but I don’t know where the other ones are.

Answers:

You will find these assemblies in the Extensions group under Assemblies in Visual Studio 2010, 2012 & 2013 (Reference Manager)

Questions:
Answers:

I had the same problem , first I couldn’t find those dlls in the list of .NET components . but later I figured it out that the solution is :

1- first I changed target framework from .NET framework 4 client profile to .NET framework 4.

2- then scroll down the list of .NET components , pass first list of system.web... , scroll down , and find the second list of system.web... at the bottom , they’re there .

I hope this could help others

Questions:
Answers:

In VS 2010 just right click on project or on reference and click add reference.
On the popup window Select Assemblies – > Extensions -> System.Web.Helpers

Questions:
Answers:

Installing ASP.NET MVC3 from here should help.

Questions:
Answers:

I had to install RazorGenerator.Templating to get it all to work. From the NuGet console, type:

Install-Package RazorGenerator.Templating

Questions:
Answers:

The issue is a missing or outdated version of MVC. I was running VS 2015Preview and could resolve the issue by installing the latest version of MVC via NuGet.

Just in case anyone is still coming across this one.

Questions:
Answers:

As for VS2017 I didn’t find it in “extensions”, there’s a Nuget package called “microsoft-web-helpers” that seems to be equivalent to System.Web.Helpers.

Questions:
Answers:

They should be under C:\Program Files\Microsoft ASP.Net (or C:\Program Files (x86)\Microsoft ASP.Net if you’re on a 64-bit OS) in a subfolder for MVC3 or WebPages.

Questions:
Answers:

On VS2017 I installed the NuGet package: Microsoft.AspNet.WebPages

That did the trick.