views:

248

answers:

3

If you develop to Sharepoint with Resharper, there are DLL locks in GAC. This issue blocking you to publish your DLLs to GAC. How to deal with it?

UPD: here is my development scenario:

VS 2008, resharper 4.5

  1. I'm developing website for '_layouts' directory and some DLLs for this website (data access level (DAL.dll) for exapmple)
  2. In the website there is a reference to DAL.dll (DAL.dll in GAC)
  3. Also In the website there is a local reference to DAL.dll (for quick resharper's cache update)
  4. All is fine! :)
  5. ...but when I have to upgrade DAL.dll in GAC I can't do this - Access deny!
  6. OK, let's turn off resharper and try it again. Done!

I don't want to reload VS every time I have to upgrade my DLLs in GAC :/

A: 

I am using Visual Studio 2008 with Resharper 4.5 and VSeWSS 1.3 CTP March for Sharepoint and everything works fine, how are you referencing assemblies in your project? What kind of SharePoint development are you doing?

F.Aquino
topic updated :)
lak-b
I dont use the cache update you mentioned, and I dont have problems with performance (I am on a 4gb, 2 core AMD low-cost cpu), maybe you can disable that feature?
F.Aquino
A: 

I have experienced the same problem with both 4.5 and 5.0 eap for both vs2008 and vs2010. The only solution I found was to temporarily unload the resharper add-in via the tools menus on 2008 (and options > resharper > suspend on 2010.)

I'll bet you're running wspbuilder add-in too. A funny symptom of this problem is that the folder c:\windows\assembly appears completely empty. Freaked me out the first time I saw it.

x0n
A: 

You cannot prevent this. It's a good practice to make a shadow copy for locked assemblies

Muse VSExtensions