Creating a dataset.designer.vb from XSD

Ken picture Ken · Nov 12, 2008 · Viewed 23.7k times · Source

I have an .xsd, .vb, .xsc, and .xss file for a dataset in Visual Studio 2008 that I copied over from another Visual Studio project, however I need to make changes to the dataset. Thus I got into the XSD file, created new columns, deleted ones that aren't needed, etc., etc. However I realized when I attempted to use the new dataset I did not have the Visual Basic code behind the scenes. This code is typically found in dataset.designer.vb. When I copied the old one over of course it was no longer valid since columns changed.

How I can force Visual Studio 2008 to use a .xsd file and to have it create/update its designer code?

Answer

Hugues picture Hugues · Aug 10, 2009

You just have to exclude your .xsd file and include it again. It will regenerate your designer.vb file.