Jos*_*uch 2 razor visual-studio-2012
在Visual Studio 2012中,我试图在我的剃刀(.cshtml)文件中设置断点,但每次我尝试时,都说断点不能是ser,否则我收到以下错误消息:
无法设置以下断点:...公共语言运行库无法设置断点.
我发现在我的web.config中,我有以下行:
<compilation
debug="true" targetFramework="4.0"
assemblyPostProcessorType="Microsoft.VisualStudio.Enterprise.Common.AspPerformanceInstrumenter, Microsoft.VisualStudio.Enterprise.AspNetHelper, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
Run Code Online (Sandbox Code Playgroud)
assemblyPostProcessorType属性导致了问题.我假设它对动态生成的剃刀程序集做了一些破坏调试的东西.
所以我只是删除了该属性来获取:
<compilation debug="true" targetFramework="4.0" />
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
2150 次 |
最近记录: |