none
How to install assemblies created in VS2013 in GAC? RRS feed

  • Question

  • Hi, 

    We are migrating our application from VS2005 to VS2013.

    As a part of it, a common assembly file which we used also we have migrated to VS2013. We tried to deploy the migrated assembly in GAC. We have used the existing gacutil.exe in older version and modified the gacutil.exe.config file with version number v4.0.30319. We kept both gacutil.exe and gacutil.exe.config files at C:\Windows\Microsoft.NET\Framework64\v4.0.30319. Also we have kept our common dll in the same location. now executed the gac command as below

    C:\Program Files\Microsoft Visual Studio 12.0>gacutil -i "C:\Windows\Microsoft.N
    ET\Framework64\v4.0.30319\SJI.Common.DbUtil.dll"
    Microsoft (R) .NET Global Assembly Cache Utility.  Version 4.0.30319.33440
    Copyright (c) Microsoft Corporation.  All rights reserved.

    Assembly successfully added to the cache

    C:\Program Files\Microsoft Visual Studio 12.0>

    But when we checked at assembly the older version of DLL only listed. can't able to find the new one.

    Please guide us to register the new DLL in gac.

    • Moved by Weiwei Cai Friday, November 27, 2015 6:06 AM not VS IDE issue.
    Thursday, November 26, 2015 6:46 AM

Answers

  • Hi RRevs,

    Did you change the major version of AssemblyVersion after you migrated your common assembly. Because the assembly version number is part of an assembly's identity and plays a key part in binding to the assembly and in version policy.

    [assembly: AssemblyVersion("2.0.0.0")]
    Best Regards,
    Li Wang


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Friday, November 27, 2015 6:39 AM
    Moderator

All replies

  • Hi RRevs,

    This forum is discuss Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor.

    Since your problem is more related to CLR, I will help you move this thread to Common Language Runtime Internals and Architecture forum for a better help. It is appropriate and more experts will assist you.

    Best Regards,
    Weiwei

    Friday, November 27, 2015 6:06 AM
  • Hi RRevs,

    Did you change the major version of AssemblyVersion after you migrated your common assembly. Because the assembly version number is part of an assembly's identity and plays a key part in binding to the assembly and in version policy.

    [assembly: AssemblyVersion("2.0.0.0")]
    Best Regards,
    Li Wang


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Friday, November 27, 2015 6:39 AM
    Moderator