IT:AD:ClickOnce:HowTo:Tips
Summary
The tooling is not very good so you'll get a bit confused.
Process
Here are some tips that might help.
- VS has a bug:
- Use Menu/Build/Deploy instead of Properties/Deploy…
- The reason is that the menu way shows Errors in the Output screen
* One error is to not use very deeply nested folders:
Example:
Error 4 Unable to copy file "obj\x86\Debug\XAct.Spikes.ClickOnceUnSignedAssemblies.pdb" to "bin\Debug\app.publish\Application Files\XAct.Spikes.ClickOnceUnSignedAssemblies_1_0_0_0\XAct.Spikes.ClickOnceUnSignedAssemblies.pdb.deploy". The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters. XAct.Spikes.ClickOnceUnSignedAssemblies
* WHen you publish to a folder (eg: http://localhost/MyApp), it creates:
- A base folder, with a Publish.htm file.
- A subfolder called Applications, within which is a version:
Example:
/MyApp
/Application Files
/XAct.Spikes.ClickOnceUnSignedAssemblies_1_0_0_0
/XAct.Spikes.ClickOnceUnSignedAssemblies.application
/XAct.Spikes.ClickOnceUnSignedAssemblies.exe.deploy
/XAct.Spikes.ClickOnceUnSignedAssemblies.exe.manifest
/XAct.Spikes.ClickOnceUnSignedAssemblies.exe.deploy
/publish.htm
/setup.exe
/XAct.Spikes.ClickOnceUnSignedAssemblies.application