I saw a post in the dnn forum, which is more practical. Stay here.
Http://www.asp.net/Forums/ShowPost.aspx? Tabindex = 1 & postid = 671187
Dnn 3. x. x deploy. BAT:
Xcopy "[dnn source root]" [Destination path]/D/E/R/k/h/I/y/W/exclude: exclude.txt
Example:
Xcopy "E: \ dnn \ dotnetnuke" E: \ dnn \ deploy/D/E/R/k/h/I/y/W/exclude: exclude.txt
This copies from my dotnetnuke source root folder to a deploy folder, excluding folders and files defined in the exclude.txt file below.
I have a folder, "E: \ dnn \ build" that has only the deply. BAT file and the exclude.txt file in it. I go there, click on deploy. bat, click any key to continue, and Viola, I have a folder containing all my files I need to deploy to my host for any site.
All I have to do is add the appropriate web. config file in the root and I am all set.
Dnn 3. x. x exclude.txt:
\ Documentation \
\ Buildsupport \
\ Components \
\ Httpmodules \
\ Controls \ countrylistbox \
\ Controls \ dataaccessblock \
\ Controls \ dotnetnuke. webcontrols \
\ Controls \ dotnetnuke. webutility \
\ Controls \ memberrole \
\ Controls \ sharpziplib \
\ Controls \ solpartmenu \ bin \
\ Portals \ 0 \ portal.css
. Sln
. Suo
. Webinfo
. VB
. Build
. Bat
. PDB
. Doc
Web. config
There is a start for the BAT file's exclude.txt file for dnn 3. x. x.
There is much, much more that can be added, this is a start for 3. x. x
The \ portals \ 0 \ portal.css file is excluded because if it exists already, dnn throws an error (unhandled) that it already exists when you run the newly deployed portal.
Deployment size from the above excludes = 22.8 MB, size on disk = 25.7 MB.
I am sure if I had a little more time this morning, I cocould easily figure out all of the required excludes, a core team member is not required (although it wocould speed things up ).