问题
I'm deploying my application using ClickOnce.
I want to register a file association but I can't manage to make it work: What should I use as ProgID in the File Associations section of the Publish Options?
回答1:
It's a name that uniquely identifies the file type. So a description might be "Document created with Microsoft Word" and the ProgID might be "Word". If your app name is short, you can just put that in there. If your app name isn't short, put in some abbreviation of it.
回答2:
Some examples from the registry subkeysHKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\ ~ \OpenWithProgids
:
- .bmp -
Paint.Picture
- .csproj -
VisualStudio.Launcher.csproj.15.0
- .csv -
Excel.CSV
- .docx -
Word.Document.12
- .mp4 -
WMP11.AssocFile.MP4
来源:https://stackoverflow.com/questions/2681604/how-do-we-use-the-progid-column-in-the-file-associations-settings