7

Are there official MIME types for the .cs (C# source), .resx, .aspx, etc. files in a .NET project?

If no official types are defined, any recommendations on good MIME types? This will be exposed via Apache and the mod_dav_svn module when viewing a Subversion repository from a web browser, so anything that'll help Firefox et al render the file correctly would do the trick.

Dylan Beattie
  • 53,688
  • 35
  • 128
  • 197

2 Answers2

12

Use the information on this answer to easily determine the MIME types.

For example (running on Windows XP SP2) I got the following results:

  • cs - text/plain
  • resx - text/xml
Community
  • 1
  • 1
Jorge Ferreira
  • 96,051
  • 25
  • 122
  • 132
3

Apparently Gnome uses text/x-csharp for C# source files, but I'd personally expect .cs and .aspx files to be text/plain and .resx to be text/xml.

Jon Skeet
  • 1,421,763
  • 867
  • 9,128
  • 9,194