- Go to the project for the assembly that you want to debug.
- Add a .snk file (created by sn –k [filename].snk at a “Visual Studio 2005 Command Prompt”)
- Modify the project setting to Sign the Assembly on the Signing tab.
- Modify the project settings to add the following build events on the Build tab:
Pre-build:
"$(DevEnvDir)..\..\SDK\v2.0\bin\gacutil" /u "$(TargetName)"
Post-build:
"$(DevEnvDir)..\..\SDK\v2.0\bin\gacutil" /i "$(TargetPath)"
copy "[Assembly Debug Path]\*.pdb" "c:\WINDOWS\assembly\GAC_MSIL\"$(TargetName)"\[AssemblyVersion]__[AssemblyPublicKey]\" - In Debug tab set "Star external program:" and "Working directory:".
- Press F5
joi, 11 februarie 2010
How to be able to debug an assembly that it is registered in the GAC?
Abonați-vă la:
Postare comentarii (Atom)
Niciun comentariu:
Trimiteți un comentariu