This command fails:
al.exe /out:ClassLibrary3.dll Class3.netmodule /keyfile:sgKey.snk
And I don’t know why. Here’s how it fails on the command line:
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools>al.exe /
out:ClassLibrary3.dll Class3.netmodule /keyfile:sgKey.snk
Microsoft (R) Assembly Linker version 10.0.30319.1
Copyright (C) Microsoft Corporation. All rights reserved.
ALINK: error AL1047: Error importing file 'c:\Program Files (x86)\Microsoft
SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools\Class3.netmodule' -- The system
cannot find the file specified.
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin\NETFX 4.0 Tools>
Class3 is the only class in my assembly. Is this looking for some physical “Class3.netmodule” file or object in a directory or something?
Thank you for any help.
This command, specifically, is trying to generate an assembly from a netmodule. So yes, it is looking for a physical file named “Class3.netmodule”.
You can’t arbitrarily sign an assembly from the command line. You must either sign it during compile time; or, if set for delay-signing, use
sn.exe -R[a].