简体   繁体   中英

Visual Studio 2010: What is a .pfk file?

I recently found out about Visual Studio's ability to create a Setup.exe file for your project when you publish the project (Build -> Publish [Project Name]). When I've done this I noticed a new file being added to my project with the name "[Project Name]_TemporaryKey.pfk" (so if the project was HelloWorld the .pfk would be "HelloWorld_TemporaryKey.pfk").

What is this file and why do I need it?

Do I need a "PermanentKey" at some point?

Thanks for your help.

A .pfk file is Personal Information Exchange file that is used to "sign" your Visual Studio assemblies.

Assembly signing (also called strong-name signing) gives an application or component a unique identity that other software can use to identify and refer explicitly to it. A strong name consists of its simple text name, version number, culture information (if provided), plus a public/private key pair. This information is stored in a key file; this can be a Personal Information Exchange (PFX) file or a certificate from the current user's Windows certificate store. More information can be obtained here.

I haven't worked with them much but I believe the link(s) below may shed some light on their use:

The Use of .PFK and .SNK files

Signing an Assembly - MSDN Documentation

Hope these helped.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM