只是有一個關於GAC的快速問題
我創建了一個程序集Awesome.DLL。沒有簽署,然後安裝到GAC:爲什麼安裝到GAC時,我的程序集在「添加引用> .Net」中不可見?
C:\MyApps\Awesome\Awesome\Awesome\bin\Release>sn -k Awesome.snk
Microsoft (R) .NET Framework Strong Name Utility Version 4.0.30319.1
Copyright (c) Microsoft Corporation. All rights reserved.
Key pair written to Awesome.snk
C:\MyApps\Awesome\Awesome\Awesome\bin\Release>gacutil /i Awesome.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:\MyApps\Awesome\Awesome\Awesome\bin\Release>gacutil /l Awesome.dll
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:
Number of items = 0
我的問題:
Awesome.DLL不C:\Windows\Assembly
或任何子文件的發現。它被發現,雖然在C:\WINDOWS\Microsoft.NET\assembly\GAC_MSIL\
我猜是因爲這個,我無法從添加引用> .Net中看到Awesome.DLL。
爲什麼不安裝到C:\Windows\Assembly\
?我怎樣才能指向那個位置呢?
如何啓用powershell以在新的GAC中查找.net 4程序集? – 2012-01-15 05:35:29