So, for some horrible reason I need to compile a very old .NET 1.1 project. Compiling it is pretty easy, but I also need it to produce signed assemblies. I noticed that .NET 1.1 csc.exe
is missing the /keyfile
argument. How do I sign my assembly without this?
Asked
Active
Viewed 64 times
0

Earlz
- 62,085
- 98
- 303
- 499
1 Answers
1
You use the AssemblyKeyFileAttribute
- it's basically equivalent to the command-line flag (as far as I'm aware) but less flexible due to being part of the source code, and it leaks the keyfile path information into the assembly itself. (Those are the reasons /keyfile
is preferred.)

Jon Skeet
- 1,421,763
- 867
- 9,128
- 9,194
-
So .NET 1.1 lacked a command line way to do signing completely? – Earlz Jan 29 '14 at 21:47
-
@Earlz: Yes, it had to be specified in the source. – Jon Skeet Jan 29 '14 at 21:48