Link to home
Create AccountLog in
Avatar of mousemat24
mousemat24

asked on

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
ASKER CERTIFIED SOLUTION
Avatar of Dirk Haest
Dirk Haest
Flag of Belgium image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Avatar of mousemat24
mousemat24

ASKER

so can you add a ref via the web.config file? will that work?
Reference GAC assemblies from web.config
http://weblogs.asp.net/mnissen/pages/151647.aspx
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
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