???? ID: 315682 - ????? ???????: 04 ?????? 2010 - ??????: 2.0

??? ??????? ??? ??????? ??????? ??? ??? Visual Basic 2005 ?? Visual Basic .NET ??? ?? ??????? ???? ?? ??? ???? ????

?????? ??????This article applies to a different operating system than the one you are using. Article content that may not be relevant to you is disabled.

?? ????? ??

??? ?? ??????? ???? | ??? ?? ??????? ????

??????

?? ???? ????? ???? ?? ?? ??? ??????? ?? ??? ??? ??????? ??? ????? ???? ?? ??? ?? ??????? ??????? ??? ??? ???. dll ????? ?? ??????? ???? ?? ??? ???? ????? ??????? ??????? ??? (GAC) ???? ??????????? ?? ??? assemblies ?? ???? ???? ?? ??? ????? ???? ??? .NET ?????? ?? ??? GAC ???????? ??? ?? ??????? ??? ??? ?????????? C:\WINNT\Assembly ??? ???????? ????

GAC ??? ?? ??????? ?? ??????? ???? ?? ??? ???? ???? ?????? ??????? ?? ????? ?? (??????, globally ?????) ???? ?????? ???, ?? ???? ?? ??? ??? ????? ?? ??????????????? ??? ?????, ?? ?????????? ??? ??? ??? ??? versioning, ??? ?? ?????? ???? ??? ?? ?? ????? ?? ??? ????? ?? ??? consuming ????????? ?????? ????? ???? ?? ??? conflicting ?? ????? ?? ??? ??? ???? ??? ???? ?? ?? ????????? ???? ???

??????????

???????? ?????????, ??????????, ??????? ??????, ???? ?? ????? ?? ?????? ??? ?? ???????? ??? ?? ????? ?????? ?? ?????:
  • ?????????? ?????? ?? ???????? ?? ???? ??????? ??????? ???? ?? ??? ??
????? ?????? ???????:
  • .NET ??? assemblies ?? ??? ??????? familiarity
  • ????-?????? ????????? ?? ????? ?? ????? ???? ?? ??? ??????? familiarity

??????? ??????? ???

????? ?? ??? ?? ???? ????? ????????? ????????? ?? ????? ?? Visual Studio .NET ?? Visual Studio 2005, ?? ????? ??? ????? ???? ?? ???, ?? ??????? ??????? ??? ??? ?????????. dll ????? ?? ??????? ???? ?? ???, ????? ????? ?? ???? ????:
  1. Visual Studio .NET ?? Visual Studio 2005 ??????
  2. ??? ?? ????? ????????? ????????? ??? ?????GACVisual Basic .NET ?? Visual Basic 2005 ????
  3. ?? ????? ??? ?? ???????? ??? ?? ???????????????? ????? ???? ?????, SN ????? ?? ?????, ?? \bin subdirectory ??? ????? ??, ???? .NET Framework ?????? ?????? ??? (SDK) ??????? ??? ???? ???? ?? ????? ??? SN ????? ??? ????-?????? ??? ????? ??????? ?? ???? ??:
    "C:\[DirectoryToPlaceKey]\[KeyName].snk" SN -k
  4. Convenience, ?? ??? ???? ?????????? ?? ??? ?????GACDemo????? C:\ ??? ????? ?? ?? ?? ???? ??? ????? ?? ???? ????? ?? ????? ????? ?? ???? ????

    ???:: ??????? ???????????? ?? ???, .NET ????? ??? ????? ??? C:\Program Files\Microsoft.NET\FrameworkSDK\Bin. ???? ???? ?? ?? ????? SN ???? ???? ????, ???? .NET ??? ??????????, ?????? ?? ??? ???? ???????? ?? ?? ??? ?? ?? ????????? ????? ????? ?? ???? ??CD????? ????????? ?? ?? ??????? ?? ??? ????-????? ????, ?? ???? SN ????? ????? ?? ?????????? ?? ???? ?? ????? ?? ??? ENTER ??????

    ????? ?????:
    "C:\GACDemo\GACkey.snk" SN -k
    ???:.NET Framework 2.0 ??? .NET ????? C:\Program Files\Microsoft.NET\SDK\v2.0\Bin ??????? ??? ????? ????
  5. ???? ????? ????? ???? ??? ??, ????? ?? ???? ?? ??? ?? ????????? ??????? ?? ??? ?????? ??? ?? ????? ?????, ?? ??? ??? ?????AssemblyInfo.vbVisual Studio 2005 ?????? Explorer ?? Visual Studio .NET ??? ????? ??? ????? ????? ??? ?? ????? ??? ???????? ??? ?? ??? ????????? ??? Visual Studio 2005 ?? Visual Studio .NET ??? ?? ???? ?? ?? ??????? ????????? ?? ???? ??? ??????:
    <assembly: assemblykeyfile("c:\gacdemo\gackey.snk")=""></assembly:>
    CTRL + SHIFT + B ???? ????????? ?? ??????? ????? ??? ?? ??? ?????? ?? ?? ????? ?? ???. dll ????? ?? GAC ??? ??????? ???? ?? ????
  6. Gacutil ????? ?? ????? ?? ??. dll ????? ?? ??????? ?????????? ??? ???? ?? ??. dll ????? ?? ??????? ?? ????? ??? ?? Gacutil ????? ?? ????? ????, ?? ????? ???? ?? ????? ?? ???? ???:
    gacutil - ??? "C:\[PathToBinDirectoryInVSProject]\gac.dll"
    ??? ?? ???? ?? ?????? ???? ????? ???, ?? Microsoft Windows Explorer ?? ????? ????? Windows Explorer ?? ?? ?????????? ?? ?????? ??, ??? ???? ????? ????????? ?? ???. dll ????? ?????? ?? ????? ?? ??????? ????? ?????, ??? c:\[SystemRoot]\Assembly ??????? ?????

    ??????? ??? ????. dll ????? ?? ???????

??? (AssemblyInfo.vb) ?? ???? ?? ???? ????

Imports System.Reflection
Imports System.Runtime.InteropServices

<Assembly: AssemblyTitle("")> 
<Assembly: AssemblyDescription("")> 
<Assembly: AssemblyCompany("")> 
<Assembly: AssemblyProduct("")> 
<Assembly: AssemblyCopyright("")> 
<Assembly: AssemblyTrademark("")> 
<Assembly: CLSCompliant(True)> 
<Assembly: AssemblyKeyFile("C:\GACDemo\GACKey.snk")> 

<Assembly: Guid("E3492A62-5389-4286-94A3-1331CC29EA6D")> 
<Assembly: AssemblyVersion("1.0.*")> 
				

?????????

  1. Windows Explorer ??????? ????..
  2. C:\WINNT\assembly ??????? ?????
  3. GAC ???????. dll ??????? ?? ???? ??? ??? ?????

??????

???? ??????? ?? ???, ????? Microsoft ??? ?????? ?? ????::
??????? ??????? ??? ??? ??? ??????? ??????? ?? ??? ??
(vs.71) http://msdn2.Microsoft.com/en-us/library/dkkx7f79 .aspx (http://msdn2.microsoft.com/en-us/library/dkkx7f79(vs.71).aspx)
??????? ??????? ???
(vs.71) http://msdn2.Microsoft.com/en-us/library/yf1d93sz .aspx (http://msdn2.microsoft.com/en-us/library/yf1d93sz(vs.71).aspx)

??????? ??????? ??? ?????(vs.71) http://msdn2.Microsoft.com/en-us/library/ex0ss12c .aspx (http://msdn2.microsoft.com/en-us/library/ex0ss12c(vs.71).aspx)

???? ???? ???? ??:
  • Microsoft Visual Basic 2005
  • Microsoft Visual Basic .NET 2003 Standard Edition
  • Microsoft Visual Basic .NET 2002 Standard Edition
  • Microsoft Visual Studio .NET 2002 Professional Edition
  • Microsoft ASP.NET 1.1
  • Microsoft ASP.NET 1.0
??????: 
kbvs2005swept kbvs2005applies kbhowtomaster kbmt KB315682 KbMthi
???? ?????? ???????????? ?????? ????????
??????????: ?? ???? ?? ???? ??????? ?? ????? ?? Microsoft ????-?????? ?????????? ?????? ?????? ???? ??? ??. Microsoft ???? ??? ????-???????? ?? ????-???????? ????? ?????? ?? ???? ???????? ???? ?? ???? ????? ????? ??? ?? ??? ?????? ?? ???? ???? ???? ??? ????? ??. ???????, ????-???????? ???? ????? ???? ???? ???? ???. ?????, ????????, ?????-???? ?? ??????? ?? ???????? ?? ???? ???, ???? ?? ??? ?????? ???? ???? ??? ????? ??? ?? ???? ??. Microsoft ??????? ??? ???? ?? ?????? ?? ??????????, ????????? ?? ??? ?????? ?? ???? ????? ?? ???? ???????? ?? ??? ???? ????? ?? ??? ????????? ???? ??. Microsoft ????-?????? ?????????? ?? ????? ?????? ?? ?? ??? ??.
?????????? ?? ??????? ????????? ??????? ??:315682  (http://support.microsoft.com/kb/315682/en-us/ )