How to add a reference to assemblies that are in the GAC folder

I've searched everywhere and it looks like you have to "Add a new registry key", is this true ?

even for VS2008 / VS2010?

or can I reference it in the web.fig file?

I'm new to this, so what I just said prob makes no sense?

thanks
mousemat24Asked:
Who is Participating?
 
DhaestCommented:
0
 
mousemat24Author Commented:
so can you add a ref via the web.config file? will that work?
0
 
DhaestCommented:
Reference GAC assemblies from web.config
http://weblogs.asp.net/mnissen/pages/151647.aspx
0
 
mousemat24Author Commented:
ok, I've seen many people ask the question I posted, so why dont they add they Reference the GAC assemblies in the web.config?

rather then adding it via the "add reference dialog box"? Is it bad pratice to add it manaully in the web.config file?

thanks
0
 
DhaestCommented:
When you add a reference to an assembly from the global assembly cache, Microsoft Visual Web Developer creates an entry in the Assemblies element of the site's Web.config file. If you add a reference to an assembly from another project, the assembly is copied to the \Bin folder of your Web project and updated as needed by Visual Web Developer.

Source: http://msdn.microsoft.com/en-us/library/ms178728(v=vs.90).aspx
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.