在发布模式下,Postsharp增强方法仅丢失调用方法的行号等。尽管提供了pdb文件,但这仍然存在。如果我不使用Postsharp,则包含行号等。
有解决方法吗?
修改
以下是我在OnMethodBoundry方面捕获的堆栈跟踪记录器的输出:
文件中的偏移104处的TestStackTrace.PSOnEntryExit.OnEntry:行:列T:\ My Projects \ TestStackTrace \ TestStackTrace \ PostScript.cs:33:4
TestStackTrace.Program.testMethod在文件中的偏移122处:行:列:16777215:0
TestStackTrace.Program.Main位于文件中的偏移98处:行:列T:\ My Projects \ TestStackTrace \ TestStackTrace \ Program.cs:21:4
文件:line:列号仅在SmartAssembly处理项目时被“损坏”。 SmartAssembly不需要配置为实际执行任何特定操作。实际上,我已经完成了所有SmartAssembly选项中没有注意到的问题。