我試圖升級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")]