【问题标题】:Said, "Assembly successfully added to the cache" but it's not in the cache说,“程序集成功添加到缓存中”,但它不在缓存中
【发布时间】:2012-06-15 15:14:27
【问题描述】:

我得到的反馈:

C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools>gacutil.
exe /i "C:\Users\wherever\ClassLibrary1.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

C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools>

但不是在搜索的内容

gacutil.exe /l | clip

它不在 /Windows/assemblies 中

我正在使用 .net 4。

【问题讨论】:

  • 谢谢。是否 C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools\gacutil.exe /l 旨在获取 C:\Windows\Microsoft.NET\assembly 中存在的程序集\GAC_MSIL ?
  • netfx 4.0 工具下的 gacutil.exe 副本应该从两个程序集位置拉入。例如,在安装了 .net 1.1、2.0、3.5 和 4.0 的系统上,如果运行 micrsoft sdks\windows\v7.0a\bin\gacutil.exe /lr,如果从.netfx 4.0 工具,您将看到列出的 3 个程序集。

标签: .net com assemblies gac .net-assembly


【解决方案1】:

.Net 4.0 程序集位于不同的位置。它们存在于 C:\Windows\Microsoft.NET\assembly

【讨论】:

  • 如何将它们添加到 windows 程序集文件夹中?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2012-06-15
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-03-09
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多