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

B

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.
 
B

Barney

I've heard of other people with this problem, so I can't be on my
own. Can anyone help?
 
T

Tino

I've heard of other people with this problem, so I can't be on my
own. Can anyone help?

I've just run across this problem myself. Did you ever find a
solution to this problem?
 
R

Rad [Visual C# MVP]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top