Go How to clean the Global Assembly Cache

Source: Internet
Author: User

This article transferred from: 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 are 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 fo R cleaning the GAC.

Step

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

Step

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

Step

Type the following in the "Command Prompt" window:

Step

Gacutil–l

Step

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

Step

Click the "C" icon at the top of the windows and select "Edit" and then "Mark." Hold down your left mouse button and highlight the assembly so 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 windows and select "Edit" then "Mark." Your left mouse button and highlight "Paste assembly name here." Click the "C" icon, select "Edit" and then "Paste" to Paste the name of that copied. For example, if you copied a 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.

Go How to clean the Global Assembly Cache

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.