سؤال

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?

هل كانت مفيدة؟

المحلول

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.)

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top