2
<Template author="Mike Krueger" version="1.0">
5
name = "${res:Templates.File.Resource.EmptyResourceFile.Name}"
6
icon = "Icons.32x32.ResourceFileIcon"
7
category = "${res:Templates.File.Categories.Misc}"
8
defaultname = "Resource${Number}.resx"
9
language = "ResourceFiles"/>
11
<Description>${res:Templates.File.Resource.EmptyResourceFile.Description}</Description>
14
<File name="${FullName}" language="ResourceFiles"><![CDATA[<?xml version="1.0" encoding="utf-8"?>
21
The primary goals of this format is to allow a simple XML format
22
that is mostly human readable. The generation and parsing of the
23
various data types are done through the TypeConverter classes
24
associated with the data types.
28
... ado.net/XML headers & schema ...
29
<resheader name="resmimetype">text/microsoft-resx</resheader>
30
<resheader name="version">2.0</resheader>
31
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
32
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
33
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
34
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
35
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
36
<value>[base64 mime encoded serialized .NET Framework object]</value>
38
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
39
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
40
<comment>This is a comment</comment>
43
There are any number of "resheader" rows that contain simple
46
Each data row contains a name, and value. The row also contains a
47
type or mimetype. Type corresponds to a .NET class that support
48
text/value conversion through the TypeConverter architecture.
49
Classes that don't support this are serialized and stored with the
52
The mimetype is used for serialized objects, and tells the
53
ResXResourceReader how to depersist the object. This is currently not
54
extensible. For a given mimetype the value must be set accordingly:
56
Note - application/x-microsoft.net.object.binary.base64 is the format
57
that the ResXResourceWriter will generate, however the reader can
58
read any of the formats listed below.
60
mimetype: application/x-microsoft.net.object.binary.base64
61
value : The object must be serialized with
62
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
63
: and then encoded with base64 encoding.
65
mimetype: application/x-microsoft.net.object.soap.base64
66
value : The object must be serialized with
67
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
68
: and then encoded with base64 encoding.
70
mimetype: application/x-microsoft.net.object.bytearray.base64
71
value : The object must be serialized into a byte array
72
: using a System.ComponentModel.TypeConverter
73
: and then encoded with base64 encoding.
75
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
76
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
77
<xsd:element name="root" msdata:IsDataSet="true">
79
<xsd:choice maxOccurs="unbounded">
80
<xsd:element name="metadata">
83
<xsd:element name="value" type="xsd:string" minOccurs="0" />
85
<xsd:attribute name="name" use="required" type="xsd:string" />
86
<xsd:attribute name="type" type="xsd:string" />
87
<xsd:attribute name="mimetype" type="xsd:string" />
88
<xsd:attribute ref="xml:space" />
91
<xsd:element name="assembly">
93
<xsd:attribute name="alias" type="xsd:string" />
94
<xsd:attribute name="name" type="xsd:string" />
97
<xsd:element name="data">
100
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
101
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
103
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
104
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
105
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
106
<xsd:attribute ref="xml:space" />
109
<xsd:element name="resheader">
112
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
114
<xsd:attribute name="name" type="xsd:string" use="required" />
121
<resheader name="resmimetype">
122
<value>text/microsoft-resx</value>
124
<resheader name="version">
127
<resheader name="reader">
128
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
130
<resheader name="writer">
131
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>