GAC Global Assembly Cache
Zur Navigation springen
Zur Suche springen
- Auf Windows 2008 R2 Servern liegt beim Installer das Binary gacutil.exe
- Auflistung der Assemblies (Beispiel primatUtils) im Cache
# "C:\Program Files (x86)\NETadminInstaller\bin\gacutil.exe" /l primatUtils Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30319.1 Copyright (c) Microsoft Corporation. All rights reserved. The Global Assembly Cache contains the following assemblies: primatUtils, Version=1.1.0.3, Culture=neutral, PublicKeyToken=b78e542a587d1254f2, processorArchitecture=MSIL Number of items = 1
- Hinzufügen eines neuen Assemblies
# "C:\Program Files (x86)\bin\gacutil.exe" /i "D:\primatUtils.dll" Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30319.1 Copyright (c) Microsoft Corporation. All rights reserved. Assembly successfully added to the cache
- Entfernen eines bestimmten Assemblies im Cache
# "C:\Program Files (x86)\bin\gacutil.exe" /u "primatUtils, Version=1.1.0.3, Culture=neutral, PublicKeyToken=b78e542a587d1254f2" Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30319.1 Copyright (c) Microsoft Corporation. All rights reserved. Assembly: primatUtils, Version=1.1.0.3, Culture=neutral, PublicKeyToken=b78e542a587d1254f2, processorArchitecture=MSIL Uninstalled: primatUtils, Version=1.1.0.3, Culture=neutral, PublicKeyToken=b78e542a587d1254f2, processorArchitecture=MSIL Number of assemblies uninstalled = 1 Number of failures = 0
- Hinzufügen eines Assemblies aus GAC in ein asp.net Projekt (D:\Web.config)
<add assembly="primatUtils, Version=1.1.0.3, Culture=neutral, PublicKeyToken=b78e542a587d1254f2"/>
Wichtig: Ein update eines DLLs erfordert ein IIS reset.