D
Dunc
I'm trying to convert some ASP.NET projects from 1.1 to 2.0. In the
1.1 version, I used strongly typed datasets a lot, which wont convert.
As a workaround, I've created an XSL schema in a seperate project, and
used the xsd.exe tool to generate the necesary code.
I've got one project that contains both the typed datasets, and the
asp.net code. I'd rather not break them into seperate projects (one is
easier for debugging). The first problem is Visual Studio 2005 wont
let me create an XSL schema in the app_code directory. I've worked
around that by creating it in the project, and moving it to the
app_code directory - works, but I'm not happy with it.
The main problem I have is when I run the XSD.exe tool on my schema in
the app_code directory, it creates the code, but when I add it to the
project then try to compile and run, I'm getting:
"The type 'xxx' already contains a definition for
'yyyyRowChangeEventHandler'"
"The type 'xxx' already contains a definition for 'yyyyRowChangeEvent'"
Both are in a file called app_code.gfrzupix.3.cs, which isn't part of
my project.
Has anyone come across / got a workaround for this?
1.1 version, I used strongly typed datasets a lot, which wont convert.
As a workaround, I've created an XSL schema in a seperate project, and
used the xsd.exe tool to generate the necesary code.
I've got one project that contains both the typed datasets, and the
asp.net code. I'd rather not break them into seperate projects (one is
easier for debugging). The first problem is Visual Studio 2005 wont
let me create an XSL schema in the app_code directory. I've worked
around that by creating it in the project, and moving it to the
app_code directory - works, but I'm not happy with it.
The main problem I have is when I run the XSD.exe tool on my schema in
the app_code directory, it creates the code, but when I add it to the
project then try to compile and run, I'm getting:
"The type 'xxx' already contains a definition for
'yyyyRowChangeEventHandler'"
"The type 'xxx' already contains a definition for 'yyyyRowChangeEvent'"
Both are in a file called app_code.gfrzupix.3.cs, which isn't part of
my project.
Has anyone come across / got a workaround for this?