- Open CMD as administrator.
- Type the following:
gacutil /i path_to_assembly_file /f
For example, type:C:\Windows\system32>gacutil /i "D:\bkp\Project\Code xxxx\XXXXX\XXXXXX\bin\Release\xxxxx.dll"Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30319.33440Copyright (c) Microsoft Corporation. All rights reserved.Assembly successfully added to the cache