I have written a small msbuild script which can be used to get the public key and the public key token from the .snk file. This attachment needs to be executed from the visual studio command prompt . Update the WorkingDir and SnkFilePath as needed, after