Reputation: 137
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
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