The SignFile task only supports signing PE files and XML files so it can't be used with other file types.
To sign other file types from MSBuild use the Exec task and signtool.exe. In the example below signtool.exe is expected to be found on the path and certificate is stored in the current users personal certificate store. The TargetPath is the path to any file type that can be signed by signtool, for example a windows installer package (.msi).
<Exec Command="signtool.exe sign /sha1 $(CertificateThumbprint) /t $(TimestampUrl) "$(TargetPath)""/>