How can I profile Signed Assemblies with VS 2010 or VS 2013

前端 未结 6 1332
遇见更好的自我
遇见更好的自我 2020-12-13 14:12

I have a website that uses AjaxControlToolkit.dll and Log4Net.dll.

When I try to run the performance profiling tool in VS 2010 on it it gives me the following warnin

6条回答
  •  悲哀的现实
    2020-12-13 14:36

    The answer is described here. You have to use a post-instrument event on each signed assembly.

    I could not manage to make it work "as is" with my installation of VS 2010. I had to call this command line as a post-build event on each dll :

    "C:\Program Files\Microsoft Visual Studio 10.0\VC\vcvarsall.bat"   & sn -Ra [pathOfDll] [pathOfSNK]
    

    Note that [pathOfDll] is located in the directory obj\Debug associated to the project.

提交回复
热议问题