We often use .xsd files in our ASP.net projects to create xsd (XSD: XML Schema Definition, used to validate XML) schema.

However, sometimes when we attempt to update the dataset the Visual Basic/ C-Sharp code behind the scene does not get updated i.e., dataset.designer.vb or dataset.designer.cs does not get updated.

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

There, is a simple workaround for this,

See the below Image,

file property

And that’s it. This will automatically regenerate the dataset.designer.vb or dataset.designer.cs file. The next time you save the XSD file you should be able to see the dataset file, dataset.designer.cs (or .vb) file, for your XSD.