How to identify a signed assembly with a delay

I have many assemblies inside one folder. Only some of them are marked for signature with a delay.

Now I have to sign all the assemblies that are marked for signing the delay.

How to identify which assembly is marked for delayed signature and which is not?

+4
source share
2 answers

You need to use sn -vf

Confirm matching syntax. If -vf is specified, force verification, even if it is disabled in the registry.

+5
source

You can run sn -v "path to your assembly". This will lead to a conclusion xxx is a delay-signed or test-signed assemblyif the assembly is delayed.

.NET, StrongNameSignatureVerificationEx (http://blogs.msdn.com/b/shawnfa/archive/2004/06/07/150378.aspx)

[DllImport("mscoree.dll", CharSet = CharSet.Unicode)]
static extern bool StrongNameSignatureVerificationEx(string wszFilePath, bool fForceVerification, ref bool pfWasVerified);
+3

Source: https://habr.com/ru/post/1525387/


All Articles