XML 编辑器中关于类型化数据集“.XSC”的警告文件
这一切都与类型化数据集有关...
未声明“urn:schemas-microsoft-com:xml-msdatasource:DataSetUISetting”元素
<?xml version="1.0" encoding="utf-8"?>
<!--<autogenerated>
This code was generated by a tool.
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</autogenerated>-->
<DataSetUISetting Version="1.00" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<TableUISettings>
<TableUISetting Name="TableName">
<ColumnUISettings>
<ColumnUISetting Name="TableColumn">
<ControlSettings>
<ControlSetting ArtifactName="Microsoft:System.Windows.Forms:Form">
<BindableControlInfo Name="LookUpEdit" Type="DevExpress.XtraEditors.LookUpEdit" AssemblyName="DevExpress.XtraEditors.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
</ControlSetting>
</ControlSettings>
</ColumnUISetting>
</ColumnUISettings>
</TableUISetting>
</TableUISettings>
</DataSetUISetting>
为什么我会在 Dataset.xsc 文件中收到此警告?如果我没记错的话,.xsc 文件是由 Visual Studio 自动生成的。当我用 Visual Studio 打开它时,我收到上面显示的警告。
声明 XML 模式的正确方法是什么?
既然它是自动生成的,是否应该声明它是正确的? ;)
It all about a typed Dataset...
The 'urn:schemas-microsoft-com:xml-msdatasource:DataSetUISetting' element is not declared
<?xml version="1.0" encoding="utf-8"?>
<!--<autogenerated>
This code was generated by a tool.
Changes to this file may cause incorrect behavior and will be lost if
the code is regenerated.
</autogenerated>-->
<DataSetUISetting Version="1.00" xmlns="urn:schemas-microsoft-com:xml-msdatasource">
<TableUISettings>
<TableUISetting Name="TableName">
<ColumnUISettings>
<ColumnUISetting Name="TableColumn">
<ControlSettings>
<ControlSetting ArtifactName="Microsoft:System.Windows.Forms:Form">
<BindableControlInfo Name="LookUpEdit" Type="DevExpress.XtraEditors.LookUpEdit" AssemblyName="DevExpress.XtraEditors.v9.2, Version=9.2.6.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" />
</ControlSetting>
</ControlSettings>
</ColumnUISetting>
</ColumnUISettings>
</TableUISetting>
</TableUISettings>
</DataSetUISetting>
Why do i get this warning in the Dataset.xsc file? If i am not wrong the .xsc file is auto generated by Visual studio. And when i open it with visual studio, i am getting the warning displayed above.
What is the correct way of declaring XML schemas?
Should it be declared correct since it was auto-generated? ;)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
正如 John Saunders 所建议的......该警告是 Microsoft 代码中的错误,而不是您的代码
As John Saunders suggested... The warning is a bug in Microsoft's code, not yours
只需尝试并注意以下代码中的两个之间的区别,第二个是正确的。
vs
所以只需复制并替换为您拥有的,错误消息就会消失,谢谢大家
这是IDOKO…………
just try and notice the difference between the two of the of the following code, the second one is the right one.
vs
so just copy and replace it with the one u have, the error message will be gone thank you guys
this is IDOKO.........