Tauntalizing vb.net error: XML literals and XML axis properties are not available, as a required reference was not provided
Tauntalizing vb.net error: XML literals and XML axis properties are not available, as a required reference was not provided
所以我在我的遗留 vb.net 应用程序中添加了一些这样的代码(刚从框架 2.0 升级到 4.0 - 所以缺少默认引用):
eag.stAgentXML = _
<Agent>
<Number><%= (CaseRoot.AgentForCase.State.PadLeft(4, "0"c) & " " & _
CaseRoot.AgentForCase.Number.PadLeft(4, "0"c) & "-" & _
CaseRoot.AgentForCase.Rank) %></Number>
<Name><%= CaseRoot.AgentForCase.LastName & ", " & CaseRoot.AgentForCase.FirstName %></Name>
</Agent>.Value
它给了我这个非常有用的信息:
XML literals and XML axis properties are not available, as a required reference was not provided
在 vb.net 团队中,我可以向谁大喊大叫,因为他们没有做到最后一毫米,实际上 告诉我 要包括哪个参考?
他们为什么不直接告诉我他们的真实感受,并阅读错误消息,"Nice try but this code is wrong. good luck."
哦 - 我不介意知道如何让它真正起作用。
Add references to System.Xml, System.Xml.Linq, and System.Core.
所以我在我的遗留 vb.net 应用程序中添加了一些这样的代码(刚从框架 2.0 升级到 4.0 - 所以缺少默认引用):
eag.stAgentXML = _
<Agent>
<Number><%= (CaseRoot.AgentForCase.State.PadLeft(4, "0"c) & " " & _
CaseRoot.AgentForCase.Number.PadLeft(4, "0"c) & "-" & _
CaseRoot.AgentForCase.Rank) %></Number>
<Name><%= CaseRoot.AgentForCase.LastName & ", " & CaseRoot.AgentForCase.FirstName %></Name>
</Agent>.Value
它给了我这个非常有用的信息:
XML literals and XML axis properties are not available, as a required reference was not provided
在 vb.net 团队中,我可以向谁大喊大叫,因为他们没有做到最后一毫米,实际上 告诉我 要包括哪个参考?
他们为什么不直接告诉我他们的真实感受,并阅读错误消息,"Nice try but this code is wrong. good luck."
哦 - 我不介意知道如何让它真正起作用。
Add references to System.Xml, System.Xml.Linq, and System.Core.