To manually associate files in Solution explorer you need to edit the
*.csproj file. An example of how it should look is below...
<File
RelPath =
"StronglyTypedDatasets\dsSelectContentPositioningDropdown.xsd"
BuildAction = "Content"
Generator = "MSDataSetGenerator"
LastGenOutput = "dsSelectContentPositioningDropdown.cs"
/>
<File
RelPath =
"StronglyTypedDatasets\dsSelectContentPositioningDropdown.cs"
DependentUpon = "dsSelectContentPositioningDropdown.xsd"
SubType = "code"
BuildAction = "Compile"
DesignTime = "True"
AutoGen = "True"
/>
[quoted text, click to view] "Kevin Yu [MSFT]" wrote:
> Thanks for Sylvain's quick response.
>
> Hi Jeronimo,
>
> First of all, I would like to confirm my understanding of your issue. From
> your description, I understand that you need to know the relationship
> between the .xsd file and .cs file. If there is any misunderstanding,
> please feel free to let me know.
>
> When you add a .xsd file, modify it and save it in VS.NET IDE, a .cs file
> will be generated according to the schema. The .cs file includes the data
> type definition that is used by the strong typed DataSet. Actually, when
> you're trying to copy a DataSet schema to another project, you just need to
> copy the .xsd file only. After adding it to the project, the .cs file will
> be generated automatically during saving or building.
>
> HTH.
>
> Kevin Yu
> =======
> "This posting is provided "AS IS" with no warranties, and confers no
> rights."
>
Thanks for Sylvain's quick response.
Hi Jeronimo,
First of all, I would like to confirm my understanding of your issue. From
your description, I understand that you need to know the relationship
between the .xsd file and .cs file. If there is any misunderstanding,
please feel free to let me know.
When you add a .xsd file, modify it and save it in VS.NET IDE, a .cs file
will be generated according to the schema. The .cs file includes the data
type definition that is used by the strong typed DataSet. Actually, when
you're trying to copy a DataSet schema to another project, you just need to
copy the .xsd file only. After adding it to the project, the .cs file will
be generated automatically during saving or building.
HTH.
Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."