Re: newbie: using xsd.exe

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



and behold, you have a database in a dll

Then what?


"deko" <deko@xxxxxxxxxx> wrote in message news:zKadnfMQ1OVhC4vZnZ2dnUVZ_tWdnZ2d@xxxxxxxxxxxxxx
Figured it out.

Here's instructions for anyone else that may cross this path.

First, add these two paths to your System Path Environment variable:

C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\Bin
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727

(or whatever they are in your installation)

Then run these 2 commands in an XP command window, in the directory where the schema is:

1) xsd.exe /d /l:CS myschema.xsd

Output:

Microsoft (R) Xml Schemas/DataTypes support utility
[Microsoft (R) .NET Framework, Version 2.0.50727.42]
Copyright (C) Microsoft Corporation. All rights reserved.
Writing file 'C:\Documents and Settings\Administrator\My Documents\Visual Studio
2005\Projects\... myschema.cs'.

2) csc.exe /t:library myschema.cs /r:System.dll /r:System.Data.dll

Output:

Microsoft (R) Visual C# 2005 Compiler version 8.00.50727.42
for Microsoft (R) Windows (R) 2005 Framework version 2.0.50727
Copyright (C) Microsoft Corporation 2001-2005. All rights reserved.

and behold, you have a database in a dll

Then move the dll to the folder that houses the project that you want this dll to be a part of (e.g. MyProject_DAL), and add a
reference to it.

done



.



Relevant Pages

  • Re: newbie: using xsd.exe
    ... Then run these 2 commands in an XP command window, in the directory where the schema is: ... Microsoft Xml Schemas/DataTypes support utility ... Copyright Microsoft Corporation 2001-2005. ... Then move the dll to the folder that houses the project that you want this dll to be a part of, and add a reference to it. ...
    (microsoft.public.dotnet.framework.adonet)
  • Deployment Status
    ... I have multiple customer webspaces on a remote server. ... If Visual Studio ... Version 1.1 would set the name of the DLL to the name of the NameSpace. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Webpart unable to register as safecontrol
    ... Here are the steps to registering a webpart as safe for all of you who ... \SDK\v1.1\Bin directory of your Visual Studio Installation. ... Make the AssemblyKeyFile look like [assembly: ... This is the location of your dll. ...
    (microsoft.public.sharepoint.portalserver.development)
  • CoCreateObject of C# ComVisible object from C++ Crashes
    ... I have three DLL projects, all compiled from Visual Studio 2003 ... setup to get to the point where I try to call CoCreateInstance takes ... the CoCreateInstance call causes Visual Studio to crash ...
    (microsoft.public.dotnet.framework.interop)
  • dll copy question
    ... I have a program that references a DLL. ... Microsoft Visual Studio Tools for Office 77633-163-9000041-41865 ... Microsoft SQL Server Analysis Services Designer ... Microsoft SQL Server Integration Services Designer ...
    (microsoft.public.vsnet.general)