|
I'm converting some old VS2003 projexts to VS2008. The xsd files do not convert to the VS2008 dataset designer. All I get is the XML version from the xsd. Is there a way to import these so that the designer works?
If this isn't the right forum, please advise.
| | kaborka Monday, October 05, 2009 1:10 AM | Hi Kaborka, Thank you for your post. Some clarification with you: What kind of project do you want to migrate? Which "xsd" files do you want to migrate? As far as I know, in VS2002 or 2003, a XmlSchema designer is shipped, which serves as both schema designer and typed dataset designer. From VS2005, you will see that there is a brand new DataSet designer in additional to the original Xml Schema designer. Furthermore, there is a new xml text editor called Xml Editor is shipped. All of them have the same extension ".xsd".
I guess that you might want to open XmlSchema designer file (Visual Studio 2003) in DataSet designer (Visual Studio 2008). In Visual Studio, the IDE is smart to peek the content of the file and open the DataSet designer or SchemaDesigner appropriately. The DataSet file is recognized by the msdata:IsDataSet="true" attribute in the root element of the schema, for example:
<xs:element name="DataSet1" msdata:IsDataSet="true"...>
For more information, please check: http://blogs.msdn.com/smartclientdata/archive/2005/06/16/XsdDesigners.aspx
Could you please try the following tricks to open this file? (Note: Before the migration, I would suggest you to backup your project.) Right click XML version from the xsd >> Open with... >> Dataset Editor.
Hope this helps. If it doesn't work, please feel free to let me know.
Best regards, Yichun Chen
Please remember to mark the replies as answers if they help and unmark them if they provide no help. Welcome to the All-In-One Code Framework! If you have any feedback, please tell us. - Marked As Answer bykaborka Tuesday, October 06, 2009 11:14 PM
- Edited byYiChun ChenMSFT, ModeratorTuesday, October 06, 2009 9:38 AMtypo
- Edited byYiChun ChenMSFT, ModeratorTuesday, October 06, 2009 8:32 AMtypo
-
| | YiChun Chen Tuesday, October 06, 2009 8:26 AM | I was able to get the old VS2003 file, e.g., MyDataset.xsd, to open in the VS2008 Dataset Designer, so that the arrangement of the typed DataTables appeared as they did in the VS2003 Designer. However, it seemed that VS08 would not generate the codefile MyDataset.Designer.cs. But since I now had the typed DataTables in a designer window, I could easily select them and copy/paste into a new Dataset, e.g., MyDatasetNew.xsd. Upon saving the latter, the Designer created the .cs file. After deleting the old files and renaming the new Dataset, the app worked fine.
Thanks for your help. - Marked As Answer byYiChun ChenMSFT, ModeratorWednesday, October 07, 2009 5:06 AM
-
| | kaborka Tuesday, October 06, 2009 11:14 PM | Hi Kaborka, Thank you for your post. Some clarification with you: What kind of project do you want to migrate? Which "xsd" files do you want to migrate? As far as I know, in VS2002 or 2003, a XmlSchema designer is shipped, which serves as both schema designer and typed dataset designer. From VS2005, you will see that there is a brand new DataSet designer in additional to the original Xml Schema designer. Furthermore, there is a new xml text editor called Xml Editor is shipped. All of them have the same extension ".xsd".
I guess that you might want to open XmlSchema designer file (Visual Studio 2003) in DataSet designer (Visual Studio 2008). In Visual Studio, the IDE is smart to peek the content of the file and open the DataSet designer or SchemaDesigner appropriately. The DataSet file is recognized by the msdata:IsDataSet="true" attribute in the root element of the schema, for example:
<xs:element name="DataSet1" msdata:IsDataSet="true"...>
For more information, please check: http://blogs.msdn.com/smartclientdata/archive/2005/06/16/XsdDesigners.aspx
Could you please try the following tricks to open this file? (Note: Before the migration, I would suggest you to backup your project.) Right click XML version from the xsd >> Open with... >> Dataset Editor.
Hope this helps. If it doesn't work, please feel free to let me know.
Best regards, Yichun Chen
Please remember to mark the replies as answers if they help and unmark them if they provide no help. Welcome to the All-In-One Code Framework! If you have any feedback, please tell us. - Marked As Answer bykaborka Tuesday, October 06, 2009 11:14 PM
- Edited byYiChun ChenMSFT, ModeratorTuesday, October 06, 2009 9:38 AMtypo
- Edited byYiChun ChenMSFT, ModeratorTuesday, October 06, 2009 8:32 AMtypo
-
| | YiChun Chen Tuesday, October 06, 2009 8:26 AM | I was able to get the old VS2003 file, e.g., MyDataset.xsd, to open in the VS2008 Dataset Designer, so that the arrangement of the typed DataTables appeared as they did in the VS2003 Designer. However, it seemed that VS08 would not generate the codefile MyDataset.Designer.cs. But since I now had the typed DataTables in a designer window, I could easily select them and copy/paste into a new Dataset, e.g., MyDatasetNew.xsd. Upon saving the latter, the Designer created the .cs file. After deleting the old files and renaming the new Dataset, the app worked fine.
Thanks for your help. - Marked As Answer byYiChun ChenMSFT, ModeratorWednesday, October 07, 2009 5:06 AM
-
| | kaborka Tuesday, October 06, 2009 11:14 PM | Hi Kaborka, It's my pleasure. I'm so glad to hear that. Thank you for your kindly sharing. Have a great day! Best regards, Yichun Chen
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us. | | YiChun Chen Wednesday, October 07, 2009 5:06 AM | Hi, I have come across this thread during my search for the way to convert VS2003 xsd to VS2008 xsd. I have tried the trick that YiChun suggested but the typed data table model appears different as the layout in VS2003. I wonder how kaborka has get the his typed data table model appears the same as in VS2003. By the way, my xsd file appears as xml when open up in VS2008.
Thanks, | | WuJi Tuesday, October 13, 2009 10:03 PM |
|