locked
Can't add a reference in VS2008 project RRS feed

  • Question

  • User1094877758 posted

    I have a Windows 7 machine that has VS2008 and VS2012 installed.  The DLL that I GACed is in the 3.5 GAC (C:\windows\assembly\).  I can verify that the DLL is GACed by doing gacutil.exe /l.  I can't add the reference to the DLL in VS2008, but I can in VS2012.  Why would that be the case?

    Wednesday, May 28, 2014 9:28 AM

All replies

  • User-484054684 posted

    I believe the folders VS looks to add reference is based on a registry key named as AssemblyFolders.

    MS KB article: http://support.microsoft.com/kb/306149

    You may cross check the paths in this key to get a clue.

    Wednesday, May 28, 2014 10:07 AM
  • User1094877758 posted

    Thanks for your response.  I found this KB article from googling, but in the Win7 registry I don't see a .NETFramework folder from the following folder structure: HKEY_CURRENT_USER\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders\<var>MyAssemblies</var>

    Wednesday, May 28, 2014 10:38 AM
  • User-484054684 posted

    You're welcome.

    I can find this folder in HKEY_LOCAL_MACHINE for a Win 7 machine. Probably you can try to put the key in this location: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\AssemblyFolders

    Wednesday, May 28, 2014 10:51 AM
  • User1094877758 posted

    Sorry for the delayed response.

    So should the value for that key be pointing to C:\Windows\assembly\gac_msil? Would I still be able to add a reference to the DLLs that are in the 4.0 GAC?

    Wednesday, May 28, 2014 2:02 PM