In my Solution, I have three executables which two of them should not be distributed through ClickOnce and not have those files generated. They are internal console applications that are distributed to specific ends. The third is a normal ClickOnce Application distributed to my final users.
Following this question and this tip on a blog, I managed to remove the ClickOnce from those apps and build correctly from Visual Studio.
But a problem happens in my Continous Integration, performed with MSBuild Command Line. In the final steps of publishing, MSBuild throws errors because it didn't found the other two executable's manifests, so my Build fails. Also, when I check the publish output, it created folders in "Application Files" for those two applications containing the ".exe" and ".config" files (which is also undesired, since they will be automatically uploaded and they shouldn't be).
Is there a parameter or another way to make MSBuild ignore just the publishing step of those projects without Clickonce?
Thanks.