我正在努力为这个xml创建反序列化类:
<?xml version="1.0" encoding="ISO-8859-1"?>
<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:stn="urn:response">
<SOAP-ENV:Body>
<Response>
<Records xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="stn:Record[1]">
<item xsi:type="stn:Record">
<person xsi:type="xsd:string">John Johnos</person>
<address xsi:type="xsd:string">Some Street 1</address>
<age xsi:type="xsd:string">24</age>
</item>
</Records>
<status xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="stn:status[1]">
<item xsi:type="stn:status">
<status xsi:type="xsd:string">success</status>
<message xsi:type="xsd:string"/>
</item>
</status>
</Response>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Run Code Online (Sandbox Code Playgroud)
我试图使用自动创建的代码(在VisualStudio 12中:编辑 - >选择性粘贴 - >将XML粘贴为类):
/// <remarks/>
[System.SerializableAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "http://schemas.xmlsoap.org/soap/envelope/")]
[System.Xml.Serialization.XmlRootAttribute(Namespace = "http://schemas.xmlsoap.org/soap/envelope/", IsNullable = false)]
public partial class Envelope
{
private EnvelopeBody bodyField;
private string encodingStyleField;
/// <remarks/>
public EnvelopeBody …Run Code Online (Sandbox Code Playgroud) 我们在本地 TFS 服务器上使用 Team Foundation 版本控制 (TFVC)。很长一段时间以来,可以从 Visual Studio 开发人员命令提示符使用 TFS Power Tools(tfpt 工具)。最近我们转移到 VS 2019。问题是我们找不到任何适用于 VS 2019 的 TFS Power Tools。例如,对未修改的文件进行撤销签出。
有没有人遇到过无法使用 VS 2019 中的 tftp 工具的类似问题?
tfs visual-studio tfs-power-tools tfs-2015 visual-studio-2019