我正在使用AMO in c#构建SSAS多维数据集。为此,我想获取服务器,多维数据集,维度等的类的公共属性列表。这将是我的超集,用户必须从中提供强制属性,并可以提供可选属性。使用XSD.exe生成XSD
我想生成一个XSD架构。我跑以下命令
XSD C:\windows\assembly\GAC_MSIL\Microsoft.AnalysisServices\10.0.0.0__89845dcd8080cc91\Microsoft.AnalysisServices.DLL /dataset /element:Cube /out:c:\temp\gac
,并得到这个错误
Error: There was an error processing 'C:\windows\assembly\GAC_MSIL\Microsoft.AnalysisServices\10.0.0.0__89845dcd8080cc91\Microsoft.AnalysisServices.DLL'.
- There was an error reflecting type 'Microsoft.AnalysisServices.ModelComponent'.
- Cannot serialize member 'System.ComponentModel.Component.Site' of type 'System.ComponentModel.ISite', see inner exception for more details.
- Cannot serialize member System.ComponentModel.Component.Site of type System.ComponentModel.ISite because it is an interface.
我该怎么做,以便正确生成的架构?
问题编辑追加目标 – 2010-02-16 15:08:39
这将是很好,如果XSD.EXE至少可以创建一个代表的ISite性质的抽象类型;如果能够分析在提供的程序集中实现ISite的所有具体类并使用它们生成扩展了ISite基本类型的具体XSD类型,那么更好。也许有更多空闲时间的人可以写这样的东西...... :-) – 2011-12-21 21:24:49