Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • dominik 711 posts 733 karma points
    May 24, 2011 @ 10:14
    dominik
    0

    Use dll from global assembly cache (GAC)

    Hello everybody,

    Is there any possibility to use a dll from the GAC?

    In .Net this is in c:\windows\microsoft.net etc.

    Thanks

  • jaygreasley 416 posts 403 karma points
    May 24, 2011 @ 13:27
    jaygreasley
    0

    Yes it is, but it depends where you want to use the dll.

    I use a GAC registered dll from a razor template and also a .net user control.

    For Razor, add an entry in the Assemblies section of the web.config like so

    <add assembly="OTHFramework, Version=1.1.0.0, Culture=neutral,PublicKeyToken=7913b864a1659efe" />

    and a @using statement in the razor template:

    @using OTHFramework;

    hth

    Jay

Please Sign in or register to post replies

Write your reply to:

Draft