Reputation: 6017
I am attempting to upgrade a VS 2008 project to work in VS 2010, there are lots of .xsd files that generate a typed dataset using the Custom Tool MSDataSetGenerator
The build works fine in 2008, but when building in 2010 it generates hundreds of errors, presumably because the MSDataSetGenerator it is using in 2010 is different than the one that VS 2008 uses. Is it possible to tell 2010 to use the same tool version as 2008?
I get errors such as
The type 'XXX' already contains a definition for 'YYY'
Ambiquity between 'XXX' and 'XXX'
In the generated designer.cs file 2010 shows:
// 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 shows:
// 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")]
Upvotes: 3
Views: 7973
Reputation: 6017
It turns out that this was a result of
So the MSDataSetGenerator used by 2010 works fine after making those fixes
Upvotes: 4