msvsmon is locking up my pdbs
During developement of my media center plugin (which has a few custom build steps to gac stuff and such) msvsmon has a rather annoying behaviour.
First compilation usually goes well, but subsequent compilations complain about myplugin.pdb being locked
Error 1 Unexpected error creating debug information file 'C:\Users\sam\source\myfile.PDB' -- 'C:\Users\sam\source\obj\Debug\myfile.pdb: The process cannot access the file because it is being used by another process.
If I exit VS and nuke the object directory, I am able to compile again. Also, if I kill off msvsmon.exe I am able to compile again (but can not debug)
Has anyone seen this error? Are there any workarounds?
I already disabled live semantic errors, 开发者_JAVA技巧just in case.
A simple workaround : You can often rename a locked file even if it can't be deleted, so just rename the locked pdb to .pdb_ or something. You don't have to restart the IDE then
I had the same issue today with GAC-ing some assemblies and referencing them from my StartUp project.
My solution was to edit my StartUp project, and delete the GAC reference to the assembly, and re-add the assembly as a project reference. This worked just fine for me, but is not the ideal solution...
精彩评论