コンテンツへスキップ
ものがたり
戻る

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が出来ているはず。面白くなってきた。


この記事を共有:

前の記事
Mono 1.1.9.1
次の記事
2005-09-22