[MonoDevelop] C# source files mime-type with gnome 2.6

Ben Maurer 05mauben at hawken.edu
Sun Mar 14 17:42:50 EET 2004


Some more items:

.config  -- used for stuff like web.config [thought, this could be a common extension, how do we add mappings. in .net it is an xml file that I would expect to be opened by the text editor, someone else might make it a binary file)

.jsl -- j#.
.asax -- global.asax
.resources -- binary resource files
.resx -- resource files
.axd -- special asp.net targets (discuession item -- this is not usually used for physical files but for `virtual' pages [like a system status page].) Should it still be mapped?
.vsdisco -- SOAP Dynamic Discovery File
.licx -- license file
.webinfo -- another web services thingy

As well, I wonder if a mime mapping can use some magic data to detect .net executables. This has a few uses:

1) A user could tell the difference between something with WINE and something that uses the .net fx
2) You could set up the system so that double click would execute with no arguments (much like it works on Windows).
3) An application such as a class library browser could easily detect .net .exe and .dll files

I think this covers most of the .net related extensions ;-).

>>> Todd Berman <tberman at sevenl.net> 02/26/04 12:28 PM >>>
In addition to that mimetype, mimetypes are also needed for
.vb, .il, .aspx, .ashx, .ascx, and .asmx.

the first two should most likely be text/x-vbsrc, and text/x-ilsrc
however the others would make more sense as application/x-aspx, etc.

--Todd

On Thu, 2004-02-26 at 12:09, Alexander Larsson wrote:
> On Thu, 2004-02-26 at 13:56, Jeroen Zwartepoorte wrote:
> > Hi,
> > 
> > I've already filed a bug against shared-mime-info at freedesktop.org
> > about this. GNOME 2.4 defines a mime-type of "text/x-csharp" for .cs
> > files. This is in line with the mime-types for .java files (text/x-
> > java).
> > 
> > The mime-type used for C# files in gnome-icon-theme is text/x-csharpsrc,
> > but since a .cs is always a source file (and there are no other source
> > files), this seems wrong (also filed a bug for that).
> 
> I have previously sent a patch for shared-mime-info like this:
> 
> --- freedesktop.org.xml.in      22 Feb 2004 17:52:18 -0000      1.9
> +++ freedesktop.org.xml.in      26 Feb 2004 17:08:26 -0000
> @@ -2085,6 +2085,10 @@ command to generate the output files.
>      <_comment>C source code</_comment>
>      <glob pattern="*.c"/>
>    </mime-type>
> +  <mime-type type="text/x-csharpsrc">
> +    <_comment>C# sources</_comment>
> +    <glob pattern="*.cs"/>
> +  </mime-type>
>    <mime-type type="text/x-dcl">
>      <_comment>DCL script</_comment>
>      <glob pattern="*.dcl"/>
> 
> However, it doesn't seem to have been applied
> 
> This matches the other mime types for sources such as text/x-adasrc,
> text/x-csrc and text/x-c++src.
> 
> =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>  Alexander Larsson                                            Red Hat, Inc 
>                    alexl at redhat.com    alla at lysator.liu.se 
> He's an ungodly misogynist messiah with no name. She's a pregnant 
> antique-collecting Valkyrie living homeless in New York's sewers. They fight 
> crime! 
> 
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list

_______________________________________________
Monodevelop-list mailing list
Monodevelop-list at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/monodevelop-list





More information about the xdg mailing list