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

后端 未结 12 1222
南笙
南笙 2020-11-27 05:45

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

  • System.Web.Helpers.dll
  • System.Web.WebPag
相关标签:
12条回答
  • 2020-11-27 06:14

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

    0 讨论(0)
  • 2020-11-27 06:25

    This particular NuGet package has a habit of losing its references in one of our projects. From time to time I will need to run the following command in the Package Manager Console to restore the references and everything is OK again

    Update-Package Microsoft.AspNet.Webpages -reinstall
    
    0 讨论(0)
  • 2020-11-27 06:26

    Installing ASP.NET MVC3 from here should help.

    0 讨论(0)
  • 2020-11-27 06:27

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

    That did the trick.

    0 讨论(0)
  • 2020-11-27 06:30

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

    Install-Package RazorGenerator.Templating

    0 讨论(0)
  • 2020-11-27 06:32

    When you install this nuget package Microsoft.AspNet.WebPages they can be find in C:\Program Files (x86)\Microsoft Visual Studio\Shared\Packages\Microsoft.AspNet.WebPages.x.x.x\lib\net45

    0 讨论(0)
提交回复
热议问题