diff --git a/ILRepack/Steps/SigningStep.cs b/ILRepack/Steps/SigningStep.cs index 72eed5fc..ad12a6a7 100644 --- a/ILRepack/Steps/SigningStep.cs +++ b/ILRepack/Steps/SigningStep.cs @@ -67,9 +67,11 @@ public void Perform() } _repackContext.TargetAssemblyDefinition.Name.PublicKey = publicKey; _repackContext.TargetAssemblyDefinition.Name.Attributes |= AssemblyAttributes.PublicKey; - _repackContext.TargetAssemblyMainModule.Attributes |= ModuleAttributes.StrongNameSigned; if (!_repackOptions.DelaySign) + { + _repackContext.TargetAssemblyMainModule.Attributes |= ModuleAttributes.StrongNameSigned; KeyPair = snkp; + } } else {