What are the MIME types for .NET project source code files?
Asked Answered
A

2

8

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.

Apace answered 16/10, 2008 at 10:39 Comment(0)
C
13

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
Conatus answered 16/10, 2008 at 10:55 Comment(1)
Great answer - specific answers to specific questions, and general info on how to find out more. Thankyou!Apace
P
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.

Predate answered 16/10, 2008 at 10:42 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.