Arthur Rees
Arthur Rees

Reputation: 137

Dataset not migrating in Visual Studio 2022 from .Net Framework 4.6.1 to .NetFramework 4.7.2

I have a Windows Forms project in Visual Studio 2022 containing a dataset that builds OK when I target .Net Framework 4.6.1 but throws a number of errors including "type or namespace not found", "No definition for Update" for one of the tables defined in the dataset if I try and target .Net Framework 4.7.2.

Upvotes: 0

Views: 1184

Answers (1)

Arthur Rees
Arthur Rees

Reputation: 137

Fixed the problem by deleting DataSet1.xsd from the 4.7.2 solution, adding a new dataset object called DataSet1, closing the solution and then replacing the files DataSet1.xsd, DataSet1.cs, DataSet1.Designer,cs, DataSet1.xsc and DataSet1.xss with corresponding files from the 4.6.1 solution. DataSet1.xsd now shows the dataset icon rather than the XML Schema icon in Solution Explorer and the project builds OK.

Upvotes: 0

Related Questions