Visual Studio Profiler shows DLL name instead of Function name

99封情书 提交于 2019-12-03 14:24:07

Found out how:

  • Run the version of NGEN.exe from the same version of .NET you are compiling for. Example: C:\Windows\Microsoft.NET\Framework64\v4.0.30319
  • Give it the parameter createpdb
  • Specify the full path of the DLL you need to PDB for Specify the path of your assembly cache. Example: ngen.exe createpdb C:\windows\pathtoassembly.dll C:\SymbolCache

Final command that worked. I reloaded Visual Studio and was succesful after that. I used the same link Hans Passant posted incidentally.

C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC>ngen createpdb "C:\Window
s\assembly\NativeImages_v4.0.30319_32\System.Drawing\ee1e19e1282f67f0466e281b535
69cd7\System.Drawing.ni.dll" C:\SymbolCache
Microsoft (R) CLR Native Image Generator - Version 4.0.30319.17929
Copyright (c) Microsoft Corporation.  All rights reserved.
Successfully generated PDB for native assembly 'C:\Windows\assembly\NativeImages
_v4.0.30319_32\System.Drawing\ee1e19e1282f67f0466e281b53569cd7\System.Drawing.ni
.dll'.
PDB generated in directory C:\SymbolCache\System.Drawing.ni.pdb\ee1e19e1282f67f0
466e281b53569cd71\
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!