質問

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