Strongly-typed datasets are the default option for creating a data access layer (DAL) with the various .NET versions of Visual Studio. From the XSD file that defines a strongly-typed dataset, Visual Studio generates a [XSD].Designer.cs and [XSD].xss. They’re regenerated every time you change the XSD, even if you just change the layout. This can become a problem when working in teams and it’s necessary to merge changes. If your Subversion repository is configured to version the generated files, they’ll be marked as conflicting when you update.
These are the steps I’ve taken to merge changes in the situation above:
- Delete [XSD].Designer.cs and [XSD].xss.
- Resolve conflicts in the XSD file (and mark them as resolved). This will generate new versions of [XSD].Designer.cs and [XSD].xss.
- When resolving conflicts in the files generated in step 2, use the whole file that was just generated.
This will be much easier than trying to resolve conflicts in generated files.