how to build it?

Oct 19, 2011 at 4:24 PM

i download latest sources and want to build a custom library. but confused by project folder structure, how to build it?

Oct 24, 2011 at 12:05 PM

Load the solution file in Visual Studio:

C:\PathToYourCode\XObjects\XObjects.sln

Customize it and build it.

(This bits optional but recommended)

In the same folder as the SLN file create a file called publish.bat and put the following text in it

rmdir /S /Q LinqToXsd
mkdir LinqToXsd
copy .\Cmdline\bin\Debug\*.* .\LinqToXsd\
copy .\XOTask\bin\Debug\*.* .\LinqToXsd\
copy .\XObjects_NETCF\bin\Debug\*.* .\LinqToXsd\
pause

This dumps everything needed to actually use your custom Linq2Xsd in a folder that you can copy into the solutions that will use them.

What customizations are you planning to write? :)

Regards,

James.

Oct 24, 2011 at 12:13 PM

Whoops, ignore the line:

copy .\XObjects_NETCF\bin\Debug\*.* .\LinqToXsd\

That bit's in there for our own customizations! :)

We have a custom version that works on the compact framework.

Regards,

J1M.

Oct 25, 2011 at 7:34 PM

Thanks for a reply,

a reason to have a custom version is that out xml schemas use attribute xsi:nil="true" to point that tag can be nullable.

Code generated by linqtoxsd.exe no expects this and throw an exception..

at this time problem solved by find and replace calls to library with wrapper makes additional check, but it prefer to have checks in library