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

?????? ????????? ?????? ?????????
???? ???????: 315682 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

??????

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

?????? ????? ?? GAC ??? ??? ??????? ??? (??? ??????) ???. ?? ?????? ??? ????? ???? ????? ????? ??????? ?? ???????. ????? ?????? ???? ????? ??????? ?????? ?????? ????? ??? ??? ???????? ???? ??? ??? ????? ?? ??????? ?? ????? ????? ?? ???? ??? ???? ??? ????????? ?? ??? ????? ?????.

???????

??????? ??????? ??? ??????? ?????? ??? ? ?????? ? ?????? ???????? ?????? ? ???????? ? ????? ? ??? ??????? ???? ???????:
  • ???? ??????? ??? ????????? ???? ??? ????? ????? ?????
????? ??????? ????????:
  • ?????? ?????? ?? ????????? ?? .NET
  • ?????? ?????? ?? ??????? ????? ?? ???? ??? ???????

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

?????? ????? "????? ??????" ???? ???????? Visual Studio .NET ?? Visual Studio 2005 ? ?????? ??? ???? ? ?????? ??? .dll ??????? ?? "????? ??????? ??????? ??????? ???????" ???? ??????? ???????:
  1. ???? Visual Studio .NET ?? Visual Studio 2005.
  2. ????? ????? "????? ??????" ???? ???? GAC ?? Visual Basic .NET ?? ?? Visual Basic 2005.
  3. ????? ??? ????. ?????? ??? ???????? ??? ??????? ??????? ???? SN ??????? ?? ?????? ?????? \bin ?????? ???? .NET Framework ???? ?????? ?????? (SDK). ???? SN ???? ??? ?????????. ???? ???? ??? ??????? ???????:
    ???? sn "C:\[DirectoryToPlaceKey]\[KeyName].snk"
  4. ??????? ?????? ???? ???? GACDemo ?? C:\ ???? ????? ?????? ??? ???? ??????? ?? ?????? ??? ??????? ?? ???? ???????.

    ??????: ???? ?????????? ????? .NET ???? ?? C:\Program Files\Microsoft.NET\FrameworkSDK\Bin. ??? ????? ????? ?????? SN ?? ????? ??? ??? ??? ?????? ????? ??? ???? ????????? ????? ?? ??? ???? bin .NET ???? ????? ??????? ?? ???? ??????? ???? ??? ?????? ?????? ??? ???? ?????? ??? ?? ???? ENTER ?????? ?????? ??? ???? ???? SN ?????.

    ???? ?? ???:
    ???? sn "C:\GACDemo\GACkey.snk"
    ?????? ?? .NET Framework 2.0 ? ????? .NET ???????? ?? ?????? Files\Microsoft.NET\SDK\v2.0\Bin C:\Program.
  5. ??? ????? ????? ??? ??? ?? ??? ??? ???????? ?? ??????? ???????. ?????? ??? ???????? ???? ????? ??????? ??? ????? AssemblyInfo.vb ?? Visual Studio .NET ?? Visual Studio 2005 ???? Explorer. ??? ?????? ??? ????? ?????? ??????? ???? ?? ??????? ?? ??? ????? ???? ??????? ??? ????? ????? ?? Visual Studio .NET ?? ?? Visual Studio 2005:
    < ???????: AssemblyKeyFile("C:\GACDemo\GACKey.snk") >
    ????? ??????? ?? ???? ????? ??? CTRL + SHIFT + B. ??? ???????? ??? ??????? ?????? ?????? ??? ??? ?????? ?????? ??? .dll ?? GAC.
  6. ????? ????? ??? .dll ???????? ???? Gacutil ?? ?????? ??? ??? .dll ??? ?????? ???????. ??? ??? ?????? ???? Gacutil ????? ??????? ????? ??????:
    gacutil - I "C:\[PathToBinDirectoryInVSProject]\gac.dll"
    ??? ??? ???? ?? ??? ????? ??????? ?????? Microsoft Windows. ??? ?????? ?? ?????? Windows. ?? ??? ? ????? ??? ?????? ????? ??? .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.
  2. ????? ??? C:\WINNT\assembly.
  3. ???? ?? GAC ?? ????? ????? .dll ???????.

?????

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

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

???????

???? ???????: 315682 - ????? ??? ??????: 24/???? ??????/1428 - ??????: 6.8
????? ???
  • 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
????? ??????: 
kbmt kbvs2005swept kbvs2005applies kbhowtomaster KB315682 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????315682

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

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com