Discussion:
Visual Studio DataSet designer doesn't regenerate designer.cs code
(too old to reply)
Barney
2007-08-20 17:07:20 UTC
Permalink
I have inherited an project, which has some datasets in it. I find
that when I edit datasets with new SQL, adding columns, tableadapters
etc, that the designer.cs class is not regenerated, and therefore I
can't access them in code.

Is there any way of forcing the regeneration (saving doesn't do it),
or is there a particular cause that I could remove to let it start
working again (maybe a subtle issue around partial class naming/
inheritance etc)?

I could really do with some help on this one.
Barney
2007-08-20 22:58:09 UTC
Permalink
I've heard of other people with this problem, so I can't be on my
own. Can anyone help?
Post by Barney
I have inherited an project, which has some datasets in it. I find
that when I edit datasets with new SQL, adding columns, tableadapters
etc, that the designer.cs class is not regenerated, and therefore I
can't access them in code.
Is there any way of forcing the regeneration (saving doesn't do it),
or is there a particular cause that I could remove to let it start
working again (maybe a subtle issue around partial class naming/
inheritance etc)?
I could really do with some help on this one.
Tino
2007-10-15 13:29:16 UTC
Permalink
Post by Barney
I've heard of other people with this problem, so I can't be on my
own. Can anyone help?
Post by Barney
I have inherited an project, which has some datasets in it. I find
that when I edit datasets with new SQL, adding columns, tableadapters
etc, that the designer.cs class is not regenerated, and therefore I
can't access them incode.
Is there any way of forcing the regeneration (saving doesn't do it),
or is there a particular cause that I could remove to let it start
working again (maybe a subtle issue around partial class naming/
inheritance etc)?
I could really do with some help on this one.
I've just run across this problem myself. Did you ever find a
solution to this problem?
Rad [Visual C# MVP]
2007-10-15 15:15:01 UTC
Permalink
Post by Tino
Post by Barney
I've heard of other people with this problem, so I can't be on my
own. Can anyone help?
Post by Barney
I have inherited an project, which has some datasets in it. I find
that when I edit datasets with new SQL, adding columns, tableadapters
etc, that the designer.cs class is not regenerated, and therefore I
can't access them incode.
Is there any way of forcing the regeneration (saving doesn't do it),
or is there a particular cause that I could remove to let it start
working again (maybe a subtle issue around partial class naming/
inheritance etc)?
I could really do with some help on this one.
I've just run across this problem myself. Did you ever find a
solution to this problem?
Try the following:

1) Click on the XSD file in the solution explorer
2) Click on the properties tab and check the Custom Tool Property. In
there you should find MSDataSetGenerator. If it's not there, type it
there
3) Once done right click the XSD file and click the menu item Run
Custom Tool.

--
http://bytes.thinkersroom.com

Loading...