开发者

How do I reference an assembly that is in the GAC?

开发者 https://www.devze.com 2023-02-04 09:07 出处:网络
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 installe

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>
0

精彩评论

暂无评论...
验证码 换一张
取 消