[Q] Where is regasm.exe ?
[try]
C:\>cd \windows
C:\Windows>cd Microsoft.net
C:\Windows\Microsoft.NET>cd frame*
C:\Windows\Microsoft.NET\Framework>cd v2.0*
C:\Windows\Microsoft.NET\Framework\v2.0.50727>regasm
--> WoW6432Node(32bit app on 64bit system)
C:\Windows\Microsoft.NET\Framework64\v2.0.50727>regasm
--> Normal registry for 64bit System
//===
[Q] Where is gacutil.exe?
[try]
C:\Program Files\Microsoft SDKs\Windows\v7.0>cd bin
C:\Program Files\Microsoft SDKs\Windows\v7.0\Bin>dir gac*
...
C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin>gacutil
or
C:\Program Files (x86)\Microsoft SDKs\Windows\v6.0A\Bin>gacutil
or
C:\Program Files\Microsoft SDKs\Windows\v7.0\Bin>gacutil /i d:\SharedAddIn2_anycpu.dll
...
Failure adding assembly to the cache: Invalid file or assembly name. The name of
the file must be the name of the assembly plus .dll or .exe .
...
C:\Program Files\Microsoft SDKs\Windows\v7.0\Bin>d:
D:\>c:gacutil /i SharedAddIn2_anycpu.dll
//===
D:\>c:gacutil /i SharedAddIn2_anycpu.dll
...
Failure adding assembly to the cache: Invalid file or assembly name. The namef the file must be the name of the assembly plus .dll or .exe .
D:\>c:gacutil /i SharedAddIn2.dll
...
Failure adding assembly to the cache: The system cannot find the file specifid.
D:\>dir
...
04/12/2011 11:29 AM 8,192 SharedAddIn2_anycpu.dll
04/12/2011 11:21 AM 7,680 SharedAddIn2_x64.dll
...
D:\>copy SharedAddIn2_anycpu.dll SharedAddIn2.dll
1 file(s) copied.
D:\>c:gacutil /i SharedAddIn2.dll
...
Failure adding assembly to the cache: Attempt to install an assembly without a strong name
...
--> need to rebuild SharedAddIn2.dll so that it is strong-named !
沒有留言:
張貼留言