में xsd.exe द्वारा जेनरेट की गई फ़ाइल का उपयोग कैसे कर सकता हूं मैं xsd.exe का उपयोग कर .xsd फ़ाइलों से .cs फ़ाइलों को उत्पन्न कर रहा हूं। लेकिन जब मैं विंडोज़ 10 सार्वभौमिक रिक्त ऐप में फ़ाइलों को जोड़ रहा हूं, तो मुझे सिस्टम के लिए "असेंबली संदर्भ गायब" के रूप में त्रुटि मिल रही थी। SerializableAttribute() और System.ComponentModel.DesignerCategoryAttribute ("code")। मैंने इसे @ t.ouvre की चाल से तय किया। फिर कोड की किसी भी विशेष पंक्ति में कोई त्रुटि नहीं थी, लेकिन जब मैं कोड बना रहा हूं तो मुझे यह कहते हुए एक त्रुटि मिल रही है कि "सिस्टम System.ComponentModel.MarshalByValueComponent मॉड्यूल System.dll में नहीं मिल सकता है" और यह बिल्कुल निर्दिष्ट नहीं करता है जहां त्रुटि है। मैं windows 10 सार्वभौमिक ऐप में xsd.exe द्वारा जेनरेट की गई फ़ाइल का उपयोग कैसे कर सकता हूं? सभी चीजें हैं जो मैं फ़ाइल (UWP में DataContractSerializer का प्रयोग करके) क्रमबद्धता और अक्रमांकन के लिए इसका इस्तेमाल करने के साथ क्या करने की जरूरतमैं विंडोज 10 सार्वभौमिक ऐप
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
[System.Xml.Serialization.XmlRootAttribute(Namespace = "", IsNullable = false)]
public partial class request
{
private usertype userField;
private string versionField;
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
public usertype user
{
get
{
return this.userField;
}
set
{
this.userField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlAttributeAttribute()]
public string version
{
get
{
return this.versionField;
}
set
{
this.versionField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
public partial class usertype
{
private string emailField;
private string passwordField;
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string email
{
get
{
return this.emailField;
}
set
{
this.emailField = value;
}
}
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string password
{
get
{
return this.passwordField;
}
set
{
this.passwordField = value;
}
}
}
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.81.0")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
[System.Xml.Serialization.XmlRootAttribute(Namespace = "", IsNullable = false)]
public partial class NewDataSet
{
private request[] itemsField;
/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("request")]
public request[] Items
{
get
{
return this.itemsField;
}
set
{
this.itemsField = value;
}
}
}
क्या आप जेनरेट की गई फाइल पोस्ट कर सकते हैं? –
सिस्टम। SerializableAttribute(), System.ComponentModel.DesignerCategoryAttribute ("code") त्रुटि दिखा रहा है "अस्तित्व में नहीं है, एक असेंबली संदर्भ गुम है"। यह कंसोल एप्लिकेशन में कोई त्रुटि नहीं दिखाता है। – Fresher
मैन्युअल रूप से गैर संकलन विशेषताओं को निकालना संभव है? (System.SerializableAttribute(), System.ComponentModel.DesignerCategoryAttribute ("कोड")) –