Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to create a custom file extension in C#?

I need help in how to create a custom file extension in my C# app. I created a basic notes management app. Right now I'm saving my notes as .rtf (note1.rtf). I want to be able to create a file extension that only my app understands (like, note.not, maybe)

like image 967
MarlonRibunal Avatar asked Apr 23 '09 04:04

MarlonRibunal


1 Answers

As a deployment point, you should note that ClickOnce supports file extensions (as long as it isn't in "online only" mode). This makes it a breeze to configure the system to recognise new file extensions.

You can find this in project properties -> Publish -> Options -> File Associations in VS2008. If you don't have VS2008 you can also do it manually, but it isn't fun.

like image 66
Marc Gravell Avatar answered Oct 12 '22 06:10

Marc Gravell