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

前端 未结 6 1311
遇见更好的自我
遇见更好的自我 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:22

    ghusse linked to a blog post giving the answer. The answer is described there. As he points out, you have to use a post-instrument event on each signed assembly.

    It's easiest to call sn.exe directly:

    "C:\Program Files\Microsoft SDKs\Windows\v7.0A\bin\sn.exe" -R [pathOfDll] [pathOfSNK]
    

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

提交回复
热议问题