|
Re: C# Express 2008 and NET 3.5 errors!
(First time post)
Automatically generated DataSet DataTable snippet
3.5 : public partial class SubusersDataTable : global::System.Data.TypedTableBase<SubusersRow> {
2.0: public partial class SubusersDataTable : global::System.Data.DataTable, global::System.Collections.IEnumerable {
Notice that TypedTableBase is not part of the .NET 2.0 framework, but it is part of the .NET 3.5 framework.
You can run into issues with the .NET build targets if you've upgraded a project from VS 2005 to 2008 - it will automatically regenerate the DataSets for 3.5, then when you try to target 2.0 again, you'll run into an issue.
In your case, you created the auto-generated dataset in VS 2008, and it's been created with the .NET 3.5 database template. You can build your data-layer yourself (not the auto-magic Dataset templates), or you can find a way for VS 2008 to create the Dataset off of the .NET 2.0 template.
I ran into this problem after upgrading an existing project to VS 2008 and simply copied the datasets from the non-upgraded VS 2005 project into the 2008 project and it built successfully.
|