문제

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