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

Ben Maurer 05mauben@hawken.edu
Thu, 26 Feb 2004 13:51:38 -0500


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@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,
> >=20
> > 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).
> >=20
> > 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).
>=20
> I have previously sent a patch for shared-mime-info like this:
>=20
> --- 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=3D"*.c"/>
>    </mime-type>
> +  <mime-type type=3D"text/x-csharpsrc">
> +    <_comment>C# sources</_comment>
> +    <glob pattern=3D"*.cs"/>
> +  </mime-type>
>    <mime-type type=3D"text/x-dcl">
>      <_comment>DCL script</_comment>
>      <glob pattern=3D"*.dcl"/>
>=20
> However, it doesn't seem to have been applied
>=20
> This matches the other mime types for sources such as text/x-adasrc,
> text/x-csrc and text/x-c++src.
>=20
> =3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=
=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D=
-=3D
>  Alexander Larsson                                            Red Hat, =
Inc=20
>                    alexl@redhat.com    alla@lysator.liu.se=20
> He's an ungodly misogynist messiah with no name. She's a pregnant=20
> antique-collecting Valkyrie living homeless in New York's sewers. They =
fight=20
> crime!=20
>=20
> _______________________________________________
> Monodevelop-list mailing list
> Monodevelop-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monodevelop-list

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