.NET项目源代码文件的MIME类型是什么? [英] What are the MIME types for .NET project source code files?

查看:113
本文介绍了.NET项目源代码文件的MIME类型是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

.NET项目中是否存在用于.cs(C#源代码)、. resx,.aspx等文件的正式MIME类型?

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

如果未定义任何官方类型,那么有关好的MIME类型的任何建议?当从Web浏览器查看Subversion存储库时,这将通过Apache和mod_dav_svn模块公开,因此任何可以帮助Firefox 正确呈现文件的方法都可以解决问题.

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.

推荐答案

使用此

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

例如(在Windows XP SP2上运行),我得到以下结果:

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

  • cs -文本/纯文本
  • resx -文本/xml
  • cs - text/plain
  • resx - text/xml

这篇关于.NET项目源代码文件的MIME类型是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆