xsd schema in app_code

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,884
Messages
2,569,953
Members
46,283
Latest member
Bernardo23

Latest Threads

Top