PLEASE USE THIS FAR BETTER PACKAGE
Import your existing Umbraco Project into the excellent uSiteBuilder from the guys at http://www.vegaitsourcing.rs/
Latest source code here https://bitbucket.org/Offroadcode/usitebuilderimporter
The project simply reads directly from your Umbraco database, there is no writing or installing into your Umbraco project involved so it's safe to use.
You should also see some summary page & two folders should be created in the root of that directory, namely “DocumentTypes” & “MasterPages”,
The two folders should contain all the uSiteBuilder classes for your site, so these need to be copied to your uSiteBuilder solution, hopefully it should build.
If you have custom datatypes such as uComponents then this project should pick these up but you will need to install them on any destination site.
Sure there can be many improvements so open for collaboration / rewrites or whatever. Had a few requests for the code so just thought it would be easier to release here
Thanks to Gordon Saxby http://our.umbraco.org/member/1955 the tool also supports MySQL as well as SQL Server. It's not been tested with SQLCE, but can't see why it would not work.
Note: This is not an official tool of Vega so please don't report bugs to them, use the forum here.
uSiteBuilder is available here http://our.umbraco.org/projects/developer-tools/usitebuilder