내가 오류가 점점 오전 XSD를 사용하여 XML 파일을 C# 코드를 생성 할 때 :는 (당신은 어셈블리 참조가없는?)
을 형식 또는 네임 스페이스 이름 'Systemizable'네임 스페이스에 'SerializableAttribute'가 없습니다 (어셈블리 참조가 누락 되었습니까?)
'DesignerCategoryAttribute'형식 또는 네임 스페이스 이름이 'System.ComponentModel'네임 스페이스에 없습니다 어셈블리 참조가 누락되었습니다.)
오류를 생성하는 코드 :
[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.0.30319.17929")]
[System.SerializableAttribute()]
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
[System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=false)]
답을 찾으려고 노력했습니다. 내가 찾은 유일한 것은 다음과 같습니다. http://support.microsoft.com/kb/916649
저에게 맞지 않습니다. 솔루션 탐색기에 시스템 폴더가 없습니다! Visual Studio 2012를 사용하고 있으며 C#/xaml 메트로 앱을 개발 중입니다!
응용 프로그램에 '시스템'이라는 네임 스페이스가 있습니까? 당신이있는 경우, 예를 들어,'어딘가에 MyApplication.System'를 사용하여 다음'System'는 시스템 네임 스페이스가 아닌 mscorlib에 시스템 네임 스페이스에 해결됩니다. –
전체 솔루션을 검색했으며 시스템이라는 네임 스페이스가 없습니다! listView 템플릿을 사용하고 있습니다! xml, xsd 및 생성 된 C# 파일은 내가 추가 한 유일한 코드입니다! – Red