gpt4 book ai didi

c# - 验证(XHTML 1.0 过渡): Element 'fieldtypes' is not supported

转载 作者:太空宇宙 更新时间:2023-11-03 16:31:00 25 4
gpt4 key购买 nike

您好,我正在尝试使用 VS 2010 创建一个 AssetPicker,它是框架 3.5,但我发现它不受支持。当我部署时,我只能看到文本字段。有什么解决办法吗?

<?xml version="1.0" encoding="utf-8"?>
<FieldTypes>
<FieldType>
<Field Name="TypeName">RelationshipField</Field>
<Field Name="ParentType">Text</Field>
<Field Name="TypeDisplayName">Relationship Field</Field>
<Field Name="TypeShortDescription">Relationship Field</Field>
<Field Name="FieldTypeClass">AssetPicker.RelationshipField, AssetPicker, Version=1.0.0.0, Culture=neutral, PublicKeyToken=7498984c8afdbdb9</Field>
</FieldType>
</FieldTypes>

最佳答案

根据您的评论,您似乎将文件放在错误的位置且名称错误。自定义字段文件必须以 fldtypes_*.xml(例如:fldtypes_AssetPicker.xml)的格式命名,并且必须以 14hive/TEMPLATE/XML 结尾。

有关使用 Visual Studio 2010 创建自定义字段类型的详细说明,请参阅:

关于c# - 验证(XHTML 1.0 过渡): Element 'fieldtypes' is not supported,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10753424/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com