private static StrongNameKey GetSNK(ProjectDefinition project) { var signAssembly = project.GetBoolProperty("SignAssembly") ?? false; var keyFile = project.GetProperty("AssemblyOriginatorKeyFile"); if (signAssembly && keyFile != null) { if (File.Exists(keyFile)) { var snk = new StrongNameKey(keyFile); return(snk); } } return(null); }