In VS2005 I have a pair of files for each report:
- ReportName.rpt
- ReportName.xsd
In VS2008, when you bring an XSD file into a project it creates 3 other files:
- ReportName.Designer.cs
- ReportName.xsc
- ReportName.xss
In point of fact, all the conflicts occured within the ".Designer.cs" files. There are global variables in each one that cause repeat definitions of the same variables, which is not allowed.
So I did a little research and came across this blog entry. I ended up following just the first part, which was to delete the ".Designer.cs" and ".xss" files. Plus, because all the ".xsc" files were empty, I deleted them too.
Lo and behold, I rebuilt the solution but these excess files were never recreated. More importantly, the reports worked perfectly once again!
Update: One problem I've discovered with the above procedure is that you still end up with one warning message per report like this:
The custom tool 'MSDataSetGenerator' failed while processing the file 'Reports\Templates\MTHOBRK3.xsd'.
The application still runs but I don't like any such warning messages to be present. After a little trial & error I found this to be the ultimate solution:
- Delete the .xsc & .xss files only.
- Replace the entire contents of each .Designer.cs file with the following:
namespace Website.Reports.Templates
{
public partial class NewDataSet
{
}
}
#pragma warning restore 1591