1*e5dd7070Spatrick<?xml version="1.0" encoding="utf-8"?> 2*e5dd7070Spatrick<!-- 3*e5dd7070Spatrick VS SDK Notes: This resx file contains the resources that will be consumed directly by your package. 4*e5dd7070Spatrick For example, if you chose to create a tool window, there is a resource with ID 'CanNotCreateWindow'. This 5*e5dd7070Spatrick is used in VsPkg.cs to determine the string to show the user if there is an error when attempting to create 6*e5dd7070Spatrick the tool window. 7*e5dd7070Spatrick 8*e5dd7070Spatrick Resources that are accessed directly from your package *by Visual Studio* are stored in the VSPackage.resx 9*e5dd7070Spatrick file. 10*e5dd7070Spatrick--> 11*e5dd7070Spatrick<root> 12*e5dd7070Spatrick <!-- 13*e5dd7070Spatrick Microsoft ResX Schema 14*e5dd7070Spatrick 15*e5dd7070Spatrick Version 2.0 16*e5dd7070Spatrick 17*e5dd7070Spatrick The primary goals of this format is to allow a simple XML format 18*e5dd7070Spatrick that is mostly human readable. The generation and parsing of the 19*e5dd7070Spatrick various data types are done through the TypeConverter classes 20*e5dd7070Spatrick associated with the data types. 21*e5dd7070Spatrick 22*e5dd7070Spatrick Example: 23*e5dd7070Spatrick 24*e5dd7070Spatrick ... ado.net/XML headers & schema ... 25*e5dd7070Spatrick <resheader name="resmimetype">text/microsoft-resx</resheader> 26*e5dd7070Spatrick <resheader name="version">2.0</resheader> 27*e5dd7070Spatrick <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> 28*e5dd7070Spatrick <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> 29*e5dd7070Spatrick <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data> 30*e5dd7070Spatrick <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> 31*e5dd7070Spatrick <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> 32*e5dd7070Spatrick <value>[base64 mime encoded serialized .NET Framework object]</value> 33*e5dd7070Spatrick </data> 34*e5dd7070Spatrick <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> 35*e5dd7070Spatrick <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value> 36*e5dd7070Spatrick <comment>This is a comment</comment> 37*e5dd7070Spatrick </data> 38*e5dd7070Spatrick 39*e5dd7070Spatrick There are any number of "resheader" rows that contain simple 40*e5dd7070Spatrick name/value pairs. 41*e5dd7070Spatrick 42*e5dd7070Spatrick Each data row contains a name, and value. The row also contains a 43*e5dd7070Spatrick type or mimetype. Type corresponds to a .NET class that support 44*e5dd7070Spatrick text/value conversion through the TypeConverter architecture. 45*e5dd7070Spatrick Classes that don't support this are serialized and stored with the 46*e5dd7070Spatrick mimetype set. 47*e5dd7070Spatrick 48*e5dd7070Spatrick The mimetype is used for serialized objects, and tells the 49*e5dd7070Spatrick ResXResourceReader how to depersist the object. This is currently not 50*e5dd7070Spatrick extensible. For a given mimetype the value must be set accordingly: 51*e5dd7070Spatrick 52*e5dd7070Spatrick Note - application/x-microsoft.net.object.binary.base64 is the format 53*e5dd7070Spatrick that the ResXResourceWriter will generate, however the reader can 54*e5dd7070Spatrick read any of the formats listed below. 55*e5dd7070Spatrick 56*e5dd7070Spatrick mimetype: application/x-microsoft.net.object.binary.base64 57*e5dd7070Spatrick value : The object must be serialized with 58*e5dd7070Spatrick : System.Runtime.Serialization.Formatters.Binary.BinaryFormatter 59*e5dd7070Spatrick : and then encoded with base64 encoding. 60*e5dd7070Spatrick 61*e5dd7070Spatrick mimetype: application/x-microsoft.net.object.soap.base64 62*e5dd7070Spatrick value : The object must be serialized with 63*e5dd7070Spatrick : System.Runtime.Serialization.Formatters.Soap.SoapFormatter 64*e5dd7070Spatrick : and then encoded with base64 encoding. 65*e5dd7070Spatrick 66*e5dd7070Spatrick mimetype: application/x-microsoft.net.object.bytearray.base64 67*e5dd7070Spatrick value : The object must be serialized into a byte array 68*e5dd7070Spatrick : using a System.ComponentModel.TypeConverter 69*e5dd7070Spatrick : and then encoded with base64 encoding. 70*e5dd7070Spatrick --> 71*e5dd7070Spatrick <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> 72*e5dd7070Spatrick <xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> 73*e5dd7070Spatrick <xsd:element name="root" msdata:IsDataSet="true"> 74*e5dd7070Spatrick <xsd:complexType> 75*e5dd7070Spatrick <xsd:choice maxOccurs="unbounded"> 76*e5dd7070Spatrick <xsd:element name="metadata"> 77*e5dd7070Spatrick <xsd:complexType> 78*e5dd7070Spatrick <xsd:sequence> 79*e5dd7070Spatrick <xsd:element name="value" type="xsd:string" minOccurs="0" /> 80*e5dd7070Spatrick </xsd:sequence> 81*e5dd7070Spatrick <xsd:attribute name="name" use="required" type="xsd:string" /> 82*e5dd7070Spatrick <xsd:attribute name="type" type="xsd:string" /> 83*e5dd7070Spatrick <xsd:attribute name="mimetype" type="xsd:string" /> 84*e5dd7070Spatrick <xsd:attribute ref="xml:space" /> 85*e5dd7070Spatrick </xsd:complexType> 86*e5dd7070Spatrick </xsd:element> 87*e5dd7070Spatrick <xsd:element name="assembly"> 88*e5dd7070Spatrick <xsd:complexType> 89*e5dd7070Spatrick <xsd:attribute name="alias" type="xsd:string" /> 90*e5dd7070Spatrick <xsd:attribute name="name" type="xsd:string" /> 91*e5dd7070Spatrick </xsd:complexType> 92*e5dd7070Spatrick </xsd:element> 93*e5dd7070Spatrick <xsd:element name="data"> 94*e5dd7070Spatrick <xsd:complexType> 95*e5dd7070Spatrick <xsd:sequence> 96*e5dd7070Spatrick <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> 97*e5dd7070Spatrick <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" /> 98*e5dd7070Spatrick </xsd:sequence> 99*e5dd7070Spatrick <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" /> 100*e5dd7070Spatrick <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" /> 101*e5dd7070Spatrick <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" /> 102*e5dd7070Spatrick <xsd:attribute ref="xml:space" /> 103*e5dd7070Spatrick </xsd:complexType> 104*e5dd7070Spatrick </xsd:element> 105*e5dd7070Spatrick <xsd:element name="resheader"> 106*e5dd7070Spatrick <xsd:complexType> 107*e5dd7070Spatrick <xsd:sequence> 108*e5dd7070Spatrick <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" /> 109*e5dd7070Spatrick </xsd:sequence> 110*e5dd7070Spatrick <xsd:attribute name="name" type="xsd:string" use="required" /> 111*e5dd7070Spatrick </xsd:complexType> 112*e5dd7070Spatrick </xsd:element> 113*e5dd7070Spatrick </xsd:choice> 114*e5dd7070Spatrick </xsd:complexType> 115*e5dd7070Spatrick </xsd:element> 116*e5dd7070Spatrick </xsd:schema> 117*e5dd7070Spatrick <resheader name="resmimetype"> 118*e5dd7070Spatrick <value>text/microsoft-resx</value> 119*e5dd7070Spatrick </resheader> 120*e5dd7070Spatrick <resheader name="version"> 121*e5dd7070Spatrick <value>2.0</value> 122*e5dd7070Spatrick </resheader> 123*e5dd7070Spatrick <resheader name="reader"> 124*e5dd7070Spatrick <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> 125*e5dd7070Spatrick </resheader> 126*e5dd7070Spatrick <resheader name="writer"> 127*e5dd7070Spatrick <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value> 128*e5dd7070Spatrick </resheader> 129*e5dd7070Spatrick</root>