Add the assembly reference to References?

Signature
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com
> Hi,
> I've built an assembly that's going to be deployed to the global assembly cache of a few servers and I'm wondering what the best way to reference it
is?
> I've deployed the assembly to my local machine's GAC and currently reference it in an app's web.config file within the compilation\assemblies
element.
> Is it better to add a section name handler for the assembly's type/namespace within the machine.config file? If i do this will i still
have to add a reference within each apps web.config file?
> The web.config reference:
> ie:
[quoted text clipped - 5 lines]
>
> Any advice is appreciated although a response of "don't put it in the GAC put it in the bin dir" isn't what I'm looking for.
Chris Mohan - 16 Jul 2004 12:37 GMT
THanks.. but I need a solution that isn't specific to Visual Studio. Adding a reference by using the "Reference" property of a project stores the information in the .vbproj file which is autogenerated by visual studio.
> Add the assembly reference to References?
>
[quoted text clipped - 21 lines]
> > Any advice is appreciated although a response of "don't put it in the GAC
> put it in the bin dir" isn't what I'm looking for.
Miha Markic [MVP C#] - 16 Jul 2004 12:48 GMT
Then add the reference at compile time...

Signature
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com
> THanks.. but I need a solution that isn't specific to Visual Studio. Adding a reference by using the "Reference" property of a project stores the
information in the .vbproj file which is autogenerated by visual studio.
> > Add the assembly reference to References?
> >
[quoted text clipped - 21 lines]
> > > Any advice is appreciated although a response of "don't put it in the GAC
> > put it in the bin dir" isn't what I'm looking for.
Chris Mohan - 16 Jul 2004 13:02 GMT
Thanks but can you elaborate? I think if I knew what you meant I would not have the need to post my question. I'd like to know how rather in addtion to when.
How would I go about "add(ing) the reference at compile time"?
> Then add the reference at compile time...
>
[quoted text clipped - 32 lines]
> GAC
> > > put it in the bin dir" isn't what I'm looking for.
Miha Markic [MVP C#] - 16 Jul 2004 14:13 GMT
Hi Chris,
See csc /reference compiler option it lets you add a reference to an
assembly at compile time.

Signature
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com
> Thanks but can you elaborate? I think if I knew what you meant I would not have the need to post my question. I'd like to know how rather in
addtion to when.
> How would I go about "add(ing) the reference at compile time"?
>
[quoted text clipped - 34 lines]
> > GAC
> > > > put it in the bin dir" isn't what I'm looking for.