本文转自:https://www.techwalla.com/articles/how-to-clean-the-global-assembly-cache

The Global Assembly Cache (GAC) folder in Microsoft Windows stores assemblies common to multiple applications. An assembly is a single, compiled unit that contains information about all the files and resources in a .NET application. The .Net framework comes with pre-installed assemblies. Developers can also place assemblies into the GAC to share them with other applications. Microsoft notes that you don't generally need to remove items from the Global Assembly Cache, but it does provide tools for cleaning the GAC.

Step

Click the Windows Search charm and type "Visual Studio." Windows will return a list of search results.

Step

Locate an entry that has "Command Prompt" in the name. The wording that you see will differ depending on your version of Visual Studio. For example, if you use Visual Studio 2013, you will see "Microsoft Visual Studio 2013 Command Prompt." Click that item. The "Command Prompt" window will open.

Step

Type the following in the "Command Prompt" window:

 

Step

Gacutil –l

Step

Press "Enter." Windows will display a list of the assemblies in the Global Assembly Cache.

Step

Click the "C" icon at the top of the window and select "Edit" and then "Mark." Hold down your left mouse button and highlight the assembly that you want to remove from the GAC. Click the "C" icon again and select "Edit" and then "Copy." This copies the assembly name to your clipboard.

 

Step

Type the following in the window:

Step

gacutil –u PASTE ASSEMBLY NAME HERE

Step

Click the "C" icon at the top of the window and select "Edit" then "Mark." Hold down your left mouse button and highlight "Paste assembly name here." Click the "C" icon, select "Edit" and then "Paste" to paste the name that you copied. For example, if you copied an assembly named "Calculate," the final command might look like this:

Step

gacutil /u "Calculate,Version=1.0.0.0, Culture=neutral, PublicKeyToken=0123456789ABCDEF"

Step

Press "Enter" to execute the command. Remove other assemblies from the GAC as needed.

[转]How to Clean the Global Assembly Cache的更多相关文章

  1. 配置到 Framework GAC(Global Assembly Cache) Assembly

    配置到 Framework 通常有两种方法,一种是直接把它放到GAC(Global Assembly Cache作用是可以存放一些有很多程序都要用到的公共Assembly)中 :另一种是把它们放到具体 ...

  2. 将.NET dll注册到GAC(Global Assembly Cache)中

    当发现有多个解决方案引用一个dll时,为了不重复引用所以将.net的一个dll注册到GAC中去. gacutil.exe. 记得使用管理员权限打开 开始菜单-Microsoft Visual Stud ...

  3. GAC(Global Assembly Cache)注册/卸载 dll

    当发现有多个解决方案引用一个dll时,为了不重复引用所以将.net的一个dll注册到GAC中去. gacutil.exe. 记得使用管理员权限打开 开始菜单-Microsoft Visual Stud ...

  4. Failed to add reference to 'System.Net.Http'. Please make sure that it is in the Global Assembly Cache.

    关闭VS再来就好了

  5. [转]程序集之GAC---Global Assembly Cache

    本文转自:http://www.cnblogs.com/jhxk/articles/2564295.html 1.什么是GAC?GAC解决什么问题? GAC全称为: Global Assembly C ...

  6. [UE4]The global shader cache file missing 运行错误解决办法

    UE4项目在VS中对项目代码编译时报如错,找了好久在UE4论坛上查到了别人的解决方案,贴出来仅供大家参考. 看到一位开发者解释出错的原因如下: There are a number of build ...

  7. error——Fusion log——Debugging Assembly Loading Failures

    原文 So...you're seeing a FileNotFoundException, FileLoadException, BadImageFormatException or you sus ...

  8. [转]Clean up after Visual Studio

    本文转自:https://weblogs.asp.net/psheriff/clean-up-after-visual-studio As programmer’s we know that if w ...

  9. NET 查找程序集路径(CLR关于Assembly的搜索路径的过程)

    最近在回顾.Net应用程序的执行环境,这里做一个很小的总结,方面以后需要的时候进行查找: CLR必须可以找到正确的Assembly,Net提供了Assembly搜索算法,可以根据.config文件(类 ...

随机推荐

  1. vmware esxi 4.1单IP访问不同机器

    1 vmware ESXI先创建虚拟机ROS作为路由  ROS设置两张网卡 WAN网卡对应外网IP LAN网卡对应LAN IP 设置网卡名 int set 0 name=wai             ...

  2. PHP框架(如:laravel、yii2、thinkPHP5)中统一异常处理及统一日志打印

    背景: 现在写接口服务应用有一个很通用的需求,想通过日志.或者监控的形式监测的接口的运行情况,比如耗时.请求参数.响应结果.和前端联调接口时或者排查线上问题时日志必不可少,特别是现场日志. 应用运行时 ...

  3. 关于hashmap的排序

    刚学java不久 之前在学习hashmap的时候 无意间发现,诶?怎么结果是排序的,然后重新输入了好多次,握草,原来java 1.8都实现了hashmap的排序 天真的我没有去网上查,没有去想java ...

  4. 走迷宫(用队列bfs并输出走的路径)

    #include <iostream> #include <stack> #include <string.h> #include <stdio.h> ...

  5. TCL数组

    数组是一组使用索引对应元素的排列方式.常规数组的语法如下所示. set ArrayName(Index) value 用于创建简单数组的例子,如下所示. #!/usr/bin/tclsh set la ...

  6. 解决phpexcel保存时文件命中文出现 乱码 (这个真的有用)

    Phpexcel导出Excel文件时有两个主要的过程: 1.定义文件名 2.填充Excel数据 这两个过程中可能会出现一些乱码问题,下面我来说一下解决办法: 解决文件名的乱码: 乱码原因:客户使用的中 ...

  7. buffer cache —— buffer busy waits/read by other session

    oracle提供非常精确.有效的row level lock机制,多个用户同时修改数据时,为了保护数据,以块为单位挂起锁的情况不会发生.但这不太正确.以块为单位的锁虽然不存在,但正因为oracle I ...

  8. ZOJ-3230-Solving the Problems

    /*ZOJ Problem Set - 3230Solving the Problems ------------------------------------------------------- ...

  9. Eutils用法总结

    好久没更新了,这里都长草了... 总结下Eutils的用法,参考<E-utilities Quick Start>,没时间看英文的可以参考下. 简介 Eutils全称是The Entrez ...

  10. 6_python之路之atm购物

    6_python之路之atm购物 1.程序说明:Readme.cmd supermarket 项目主目录 ├── access.log 日志文件 ├── atm atm程序 │?? ├── atm.p ...