How do I reference an assembly that is in the GAC?
H Since the .NET tab in the "Add Reference ..." dialog does 开发者_Python百科not show the assemblies form the GAC what is the common best practise to add a reference to an assembly that was installed in GAC to my visual studio project?
This article mentions the registry keys which you can modify to directly show the assemblies from GAC http://weblogs.asp.net/jdanforth/archive/2003/12/16/43841.aspx
How can I reference a dll in the GAC from Visual Studio?
"Add Reference..." dialog modifies your project file (for example .csproj for C#). It is simple msbuild file. To add reference to your project you should modify node: Reference
<Reference Include="System.Data.Services">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
精彩评论