Where are the symbols for ASP.NET MVC 4.0 RTM?

前端 未结 7 1140
既然无缘
既然无缘 2020-12-24 01:30

I\'m trying to configure Visual Studio 2012 to allow me to step into ASP.NET MVC 4.0 source code. (System.Web.Mvc.dll). I\'ve followed SymbolSource\'s recommend

7条回答
  •  盖世英雄少女心
    2020-12-24 01:54

    I will make some refinements to Luke Gumbley's anwser.

    Microsoft tries to make a developer's life easier. Whenever it release an MVC version installer, there should also be a Source to download. So people can use the source to explore what is installed by the Installer, as well as to debug the MVC.

    Back to the way of downloading the MVC debug info. Your Visual Studio (I use 2010) will never try to download MVC PDB files from the aforementioned servers if you have MVC4 installed on your system. In this case, your Visual Studio will use the MVC from your GAC when you run debugger.

    I have tried the way suggested by Luke Gumbley. However, once you uninstall MVC, your MVC project will not be loaded, and you cannot create a new MVC project since the Template is gone. So please don't unistall MVC. If you do so, you still need to reinstall it. This wastes time.

    What you really need to do is exit your Visual Studio, run command

    gacutil /u System.Web.Mvc
    

    Then go to C:\Windows\Microsoft.NET\assembly\GAC_MSIL, remove or rename the offending System.Web.Mvc folder. After this, lanuch your Visual Studio, and fetch the MVC package from NuGet.

提交回复
热议问题