Hi, it is possible to generate complete target from basically scratch. However lots of details makes it complex task. There are alternatives:
- For each PB target store a "baseline" set of "almost empty files" to ease the Get-Latest process
- For every release => store in source control "released" set of PBL files holding up-to-date source
- Create "magic tool" to construct complete set of .PBW + .PBT + .PBL + .PBD + .PBR + images + help files + everything else under source control from combination of incremental Get-Latest + Import
- Buy a tool that automates the process so you don't have to write the complete tool yourself
(EX: PowerGen from E. Crane Computing) - Not cheap but value for money.
I have previously built the required tools = small collection of ORCAScript files, PowerShell scripts, and a PowerShell module encapsulating all the generic functionality. I don't have access to that code so I can't share it. Sorry.
You're welcome to ask for specific details if relevant.
HTH /Michael
Create empty PBL >>> CREATE LIBRARY ...
Get latest >>> SCC GET LATEST ...
Deploy files >>> BUILD ...
Build target >>> SCC SET TARGET ... + SCC FRESH TARGET ...
Recommendations : : : Start with simplest possible example, like full build of a target. Then add gradually. Test continuously. Keep scripts for "deploy w/build" separate from scripts for "get-latest w/build".
I followed your instructions and started with the simplest: Connect with TFS..
Would you mind helping me with the connection with this ?
All the "scc set connect property" I've copied from the regedit of the pbw...
But when try the scc connect I get this error:
Unable to Read Registry Value: SOFTWARE\SourceCodeControlProvider\InstalledSCCProviders\Microsoft Team Foundation Serve