ものがたり(旧)

atsushieno.hatenablog.com に続く

dc.exeを使ってみた


Error: Type 'openAttrs' in namespace 'http://www.w3.org/2001/XMLSchema' cannot be imported. is not supported. Either fix the schema to conform to [DataContract] rules or use ImportXmlType or use a different formatter

ふーん…

って、いやいや、-ixt付けるだけでちゃんとファイルが生成できるぞ。生成したファイルはコレ。パッと見た感じ、ちゃんとファイルが出来ていますという感じの出力だ。


$ csc -t:library -r:System.Runtime.Serialization.dll out.cs
これでdata contractベースのserializable typeを含むdllが出来ているはず。面白くなってきた。