Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 Visual Studio 2012,这里有一个 C# 项目,当然我App.config在我的项目中使用。一切都很好,直到我添加了这样的内容:
App.config
<add key="myChar" value="²"/>
错误:
Entity 'sup2' not defined
那么 sup2 应该代表²就像&qout;代表一样"。因为&qout;我没有得到任何错误。为什么?我仍然能够编译,但我想摆脱这个消息 - 或者理解为什么它是 VS 的错误。
²
&qout;
"
只有一小部分对 XML 有效的实体 - 那些转义部分 XML 标记本身的实体:
HTML 中的各种语法还有很多。
参考(对不起它的维基百科)