Visual studio 2017 Visual Studio 2017中的资源文件(.resx)";无法显示值";错误

Visual studio 2017 Visual Studio 2017中的资源文件(.resx)";无法显示值";错误,visual-studio-2017,resx,Visual Studio 2017,Resx,我在Visual Studio 2017中创建了一个本地化资源文件。每次我在值字段VS崩溃中设置一个值时 这是resx文件的代码 <?xml version="1.0" encoding="utf-8"?> <root> <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml

我在Visual Studio 2017中创建了一个本地化资源文件。每次我在值字段VS崩溃中设置一个值时

这是resx文件的代码

<?xml version="1.0" encoding="utf-8"?>
<root>
    <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
        <xsd:element name="root" msdata:IsDataSet="true">
            <xsd:complexType>
                <xsd:choice maxOccurs="unbounded">
                    <xsd:element name="data">
                        <xsd:complexType>
                            <xsd:sequence>
                                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
                                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
                            </xsd:sequence>
                            <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
                            <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
                            <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
                        </xsd:complexType>
                    </xsd:element>
                    <xsd:element name="resheader">
                        <xsd:complexType>
                            <xsd:sequence>
                                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
                            </xsd:sequence>
                            <xsd:attribute name="name" type="xsd:string" use="required" />
                        </xsd:complexType>
                    </xsd:element>
                </xsd:choice>
            </xsd:complexType>
        </xsd:element>
    </xsd:schema>
    <resheader name="resmimetype">
        <value>text/microsoft-resx</value>
    </resheader>
    <resheader name="version">
        <value>1.3</value>
    </resheader>
    <resheader name="reader">
        <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
    </resheader>
    <resheader name="writer">
        <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.3500.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
    </resheader>
</root>

text/microsoft resx
1.3
System.Resources.ResXResourceReader,System.Windows.Forms,版本=2.0.3500.0,区域性=中性,PublicKeyToken=b77a5c561934e089
System.Resources.ResXResourceWriter,System.Windows.Forms,版本=2.0.3500.0,区域性=中性,PublicKeyToken=b77a5c561934e089

这是一个bug还是我应该更改文件格式?

在解决方案资源管理器中右键单击resx文件>用…>选择XML(文本)编辑器>确定。在这里复制这个文件的内容。我发布了resx代码@misaz。这个文件有多旧?它是在Visual Studio中创建的还是在其他应用程序中创建的?它是在哪个Visual Studio版本中创建的?Visual Studio 2017正在使用版本2.0(您的版本为1.3)的结构,并且缺少数据元素(包含字符串键/值)。在VS2017中创建了带kay-Foo和价值条的演示resx,您可以在