2012-06-12 2 views
0
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 /uf "ClassLibrary1.dll 
Microsoft (R) .NET Global Assembly Cache Utility. Version 4.0.30319.1 
Copyright (c) Microsoft Corporation. All rights reserved. 

No assemblies found matching: ClassLibrary1.dll 
Number of assemblies uninstalled = 0 
Number of failures = 0 

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

"ClassLibrary1.dll"이 C : \ Windows \ Microsoft.NET \ assembly \ GAC_MSIL \ ClassLibrary1 \ v4.0_1.0.0.0__2efc1c0b243a0c09에 있음을 알 수 있습니다. gacutil.exe가 처음부터이 프로그램을 설치 했습니까? 그것을 제거 할 수 있습니까? 설치 한 것을 알 수 있습니까? .NET 4 어셈블리를 설치하거나 제거하도록 설계 되었습니까?두 개의 연속 gacutil 명령, 15 초 이내.

+0

중복 된 따옴표를 삭제해야합니다./uf "ClassLibrary1.dll ->/uf ClassLibrary1.dll – k0stya

+0

k0stya. – user225626

답변

1

두 번째 명령에서 .dll을 어셈블리 이름에서 제거하십시오.

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

doc에 따르면 gacutil/u 명령은 경로 또는 파일 이름이 아닌 어셈블리 이름을 요구합니다. 내 어셈블리 중 하나에서 .dll로 끝내려고했는데 같은 오류가 발생했습니다.

이것이 옳다고 약속 할 수는 없지만 그것이 내가 본 것입니다.

gacutil/u 또는/uf는 여러 버전의 어셈블리를 동시에 제거 할 수 있습니다. 따라서 버전을 모두 제거하지 않으려면 버전을 지정하는 것이 좋습니다.

+0

고마워. – user225626

+0

마지막 파라도 주셔서 감사합니다. – user225626

관련 문제