We have encountered a problem when regenerating our dataset (or even rebuilden the project/solution) This was the situation
- Project is in SourceSafe
- We checked out our dataset file
- Following files are included:
- Dataset.xsd
- Dataset.vb
- Dataset.xsx
- Make changes to the dataset
- Run custom tool
- Now we have following files
- Dataset.xsd
- Dataset1.vb
- Dataset.xsx
As you can see our VB file has another name.When viewing the source code the class name is correct.This is because the vb-file isn't checked out (a bug in Visual Studio .Net 2003?) and you can't checkout the file anymore because for Visual Studio it's already checked out. To solve this, follow the next steps
- Delete the vb-file from your solution
- Save the solution
- Close the solution
- Go to explorer en locate your files
- Delete here also the vb-file.You will get a warning about the read-only state.
- Go to the project file
- Search for your dataset
- Delete the line "LastGenOutput = "DataSet1.vb"
- Reopen your solution
- Run again the custom tool
After this the situation will be back normal, so these files are included:
- Dataset.xsd
- Dataset.vb
- Dataset.xsx