我试图升级VS 2008项目在VS 2010中工作,有很多.xsd文件,使用自定义工具MSDataSetGenerator生成一个打字数据集指定要使用的MSDataSetGenerator工具版本?
该建设在2008年正常工作,但在2010年它会产生数百个错误,可能是因为它在2010年使用的MSDataSetGenerator与VS 2008使用的MSDataSetGenerator不同。是否可以告诉2010年使用与2008年相同的工具版本?
我得到的错误,如
类型 'XXX' 已经包含了一个定义 'YYY'
'XXX' 之间Ambiquity和 'XXX'
在designer.cs文件中产生2010显示:
// This code was generated by a tool. // Runtime Version:4.0.30319.17020
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "4.0.0.0")]
2008显示:
// This code was generated by a tool. // Runtime Version:2.0.50727.3053
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "2.0.0.0")]