This text is partially misleading, partially insufficient, partially just wrong. You very likely fail miserably if you try to "walk through" your task with it.
1. Do not put files into bin directory or smth. - mage example provided on top of that leads just to wrong setup, where files are not found when deployed.
2. Step 5 and step 7 - there is no link nor guidance how to create pfx file. Good example is at
http://blogs.msdn.com/maximelamure/archive/2007/01/24/create-your-own-pfx-file-for-clickonce.aspx3. Step 5 and step 7 then need additional arguments to feed with keyfile passwords "-pwd <yourpassword>" (you want your TFS build, right, why else to use commandline?)
4. Mage does not have option to provide deployment manifest with publisher information, but installation fails then with "Deployment manifest requires that you specify a publisher and a product". Link, how to tweak it is
http://www.ureader.com/msg/1436844.aspx. Another option woult be of course to manually modify deployment manifest. But leaving it without publisher results definitely with a crash.
5. No word about the fact that publishing files without special .deploy extension results with webserver configuration headaches, with IIS it may be complete showstopper. Unfortunately mage does not have functionality to support .deploy-renaming. Workaround is to:
a) generate application manifest
b) sign application manifest
b) add .deploy extension to all files except .manifest file
c) create application manifest, modify deployment tag, add parameter mapFileExtensions="true"
d) sign application manifest