我正在c# 中使用 AMO构建 SSAS 多维数据集。为此,我想获取服务器、多维数据集、维度等类的公共属性列表。这将是我的超集,用户必须从中提供强制属性并且可以提供可选属性。
我正在尝试生成 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.
我该怎么做才能正确生成架构?