In older GPG versions you had to run the command with the option --with-fingerprint
to have it show the fingerprint of a key file:
gpg --with-fingerprint foo.asc
In newer versions (2.2 and above, I believe) the fingerprint will be shown by default and will not be shown when using that option, so the parameter must be omitted:
gpg foo.asc