469,271 Members | 1,648 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,271 developers. It's quick & easy.

Visual Studio DataSet designer doesn't regenerate designer.cs code

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.

Aug 20 '07 #1
3 25082
I've heard of other people with this problem, so I can't be on my
own. Can anyone help?
On 20 Aug, 18:07, Barney <shipcr...@gmail.comwrote:
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.

Aug 20 '07 #2
On Aug 20, 6:58 pm, Barney <shipcr...@gmail.comwrote:
I've heard of other people with this problem, so I can't be on my
own. Can anyone help?

On 20 Aug, 18:07, Barney <shipcr...@gmail.comwrote:
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?

Oct 15 '07 #3
On Mon, 15 Oct 2007 06:29:16 -0700, Tino <sl*******@yahoo.comwrote:
>On Aug 20, 6:58 pm, Barney <shipcr...@gmail.comwrote:
>I've heard of other people with this problem, so I can't be on my
own. Can anyone help?

On 20 Aug, 18:07, Barney <shipcr...@gmail.comwrote:
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
Oct 15 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Ricardo Dias Marques | last post: by
1 post views Thread by Nathan | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.