Assembly references in web sites

Discussion in 'ASP .Net' started by Plamen Doykov, Mar 7, 2006.

  1. Hi everybody

    I couldn't find detailed information about referencing assemblies in a
    ASP.NET 2.0 web site.
    Basically what I want to do is to share files with code between a tool
    assembly and a web project when the web project references that tool
    assembly. My first idea was to use internal classes, which should be shared
    without name clashes. But the new way of building web sites in VS 2005
    builds many different assemblies and thus undermines this truly useful
    feature on .NET, namely 'internal' (sigh). AFAIK this limitation still
    applies to web deployment project, since WDP merges already compiled
    separate assemblies. If I am wromg and there is any way of using internal
    classes, please tell me, I'll be very grateful.
    The next idea was to make tool classes public and resolve name clashes by
    using aliases when referencing assemblies. But I could not find where this
    reference is remembered, having no project file. I found it in WDP, but this
    is of no use, and web.config assembly section doesn't seem to allow
    reference aliases.
    I know it is possible to put all shared tool classes in a separate assembly
    and use them from there, but this is a very very very ugly approach :-(

    Thanks a lot
    Plamen
    Plamen Doykov, Mar 7, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kevin Buchan
    Replies:
    1
    Views:
    452
    Eric Lawrence [MSFT]
    Feb 20, 2004
  2. Replies:
    3
    Views:
    1,792
  3. Lamentations

    web project, web references and the assembly

    Lamentations, Jul 3, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    309
    Lamentations
    Jul 3, 2006
  4. Jasbird

    Sites about web-sites ?

    Jasbird, Sep 12, 2006, in forum: HTML
    Replies:
    1
    Views:
    379
  5. imx
    Replies:
    10
    Views:
    776
Loading...

Share This Page