473,325 Members | 2,712 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

problem converting xsd from 1.0 to 2.0

I've inherited a .NET 1.0 app that I'm converting to 2.0.

It contains a number of .xsd files (.xsd, .xsx, .cs) which get converted to
(.xsd, .xsx, .xss, .xsc, .cs, .Designer.cs).

The problem is that after VS 2005 converts these files, they will no longer
compile.. There are numerous classes with the partial keyword left off, and many
duplicate classes between the .cs and the Designer.cs.

I'm slowly converting the project, and am dragging the (.xsd, .xsx, .cs) files
into the Solution Explorer.

There are so many that it would take a week full time to try to massage them by
hand.

How can I get these files to convert properly, so that they will compile?
--
Thanks in advance, Les Caudle
Apr 15 '07 #1
2 2164
Hi,
I tried a similar scenario and it was working properly, kindly check the
following link, this may help you:

http://msdn2.microsoft.com/en-us/library/aa479567.aspx

Regards,
Husam Al-A'araj
"Les Caudle" wrote:
I've inherited a .NET 1.0 app that I'm converting to 2.0.

It contains a number of .xsd files (.xsd, .xsx, .cs) which get converted to
(.xsd, .xsx, .xss, .xsc, .cs, .Designer.cs).

The problem is that after VS 2005 converts these files, they will no longer
compile.. There are numerous classes with the partial keyword left off, and many
duplicate classes between the .cs and the Designer.cs.

I'm slowly converting the project, and am dragging the (.xsd, .xsx, .cs) files
into the Solution Explorer.

There are so many that it would take a week full time to try to massage them by
hand.

How can I get these files to convert properly, so that they will compile?
--
Thanks in advance, Les Caudle
Apr 15 '07 #2
Husam - that solution won't work for me.

I'm unable to convert the existing solution. It is running 'live' on an
existing server - to be replaced by my conversion when I get that working.

So, I already have a .NET 2.0 solution, with about 1/2 of the files from the old
solution working.

I drag them in one by one.

The aspx pages convert ok, with a bit of massaging.

But the XSD files do not. For some reason, they are getting converted into
multiple files with the .Designer.cs - instead of just importing directly.

Partial classes are only created in one file, not in the others, and there are
multiple duplcate classes (that were not there before).

Anyone else with an idea?

Thanks, Les Caudle

On Sun, 15 Apr 2007 15:44:03 -0700, Husam Al-A''araj
<Hu**********@discussions.microsoft.comwrote:
>Hi,
I tried a similar scenario and it was working properly, kindly check the
following link, this may help you:

http://msdn2.microsoft.com/en-us/library/aa479567.aspx

Regards,
Husam Al-A'araj
"Les Caudle" wrote:
>I've inherited a .NET 1.0 app that I'm converting to 2.0.

It contains a number of .xsd files (.xsd, .xsx, .cs) which get converted to
(.xsd, .xsx, .xss, .xsc, .cs, .Designer.cs).

The problem is that after VS 2005 converts these files, they will no longer
compile.. There are numerous classes with the partial keyword left off, and many
duplicate classes between the .cs and the Designer.cs.

I'm slowly converting the project, and am dragging the (.xsd, .xsx, .cs) files
into the Solution Explorer.

There are so many that it would take a week full time to try to massage them by
hand.

How can I get these files to convert properly, so that they will compile?
--
Thanks in advance, Les Caudle
--
Thanks in advance, Les Caudle
Apr 17 '07 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: c duden | last post by:
I am attempting to encrypt some text and be able to decrypt it at a later time. I have two methods to do this: public static Byte EncryptText(string textToEncrypt, string encryptionHash) {...
2
by: nanookfan | last post by:
Hi all, I'm having a bizarre problem converting XML files to HTML using an XSLT. The problem is only occuring in my Netscape 7.0 browser. What makes it more bizarre is that it is only...
17
by: Jon Slaughter | last post by:
I'm having a little trouble understanding what the slicing problem is. In B.S.'s C++ PL3rdEd he says "Becayse the Employee copy functions do not know anything about Managers, only the Employee...
1
by: Rob Parker | last post by:
I posted this (with a different subjetc line) in the ms.public.access.forms newsgroup a few days ago, but haven't had a single response there. I'm hoping maybe someone here can help. Using...
0
by: Lokkju | last post by:
I am pretty much lost here - I am trying to create a managed c++ wrapper for this dll, so that I can use it from c#/vb.net, however, it does not conform to any standard style of coding I have seen....
16
by: Dany | last post by:
Our web service was working fine until we installed .net Framework 1.1 service pack 1. Uninstalling SP1 is not an option because our largest customer says service packs marked as "critical" by...
2
by: TheLongshot | last post by:
Ok, let's try this again. I have an ASP.NET 1.1 application that I'm working to convert to 2.0, but I've run into a snag. The problem is with this line: return...
0
by: anide | last post by:
Hi all I’ve some problem, I’m trying to converting a sorting algorithm from C++ to C#. In C++ I’ve compiled it using MSVC and its working properly, and in C# I’m using .NET Framework 2.0 (Visual...
4
by: Jeff | last post by:
Hey ..NET 2.0 In my code am I trying to convert an int value into a decimal: decimal d = 0; int k = 87664; d = Convert.ToDecimal(k/100);
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.