We are using cc.net (cruise control) and msbuild to build a click once application. This is the msbuild task:
C:\\Progra