I don't know what caused Visual Studio to start thinking it needs to publish my project, but now whenever I build it, I get several "Unable to apply publish properties for item 'blah'" warnings. How do I stop Visual Studio 2005's publishing facilities from working on my project completely? I use InstallShield, so I don't have any use for Visual Studio's publishing system.
Asked
Active
Viewed 1.6k times
46

Peter Mortensen
- 30,738
- 21
- 105
- 131

jasonh
- 29,297
- 11
- 59
- 61
-
What warning error codes are they? – RCIX Jun 12 '09 at 04:42
-
It doesn't have one. Here's the warning: http://i42.tinypic.com/210cbae.png – jasonh Jun 12 '09 at 16:51
-
2This happened to me after I cleaned up some unnecessary assembly references - the application files ClickOnce settings are not kept in synch automatically and require this attention. – Luke Puplett Sep 23 '10 at 22:12
2 Answers
66
Open your project, select Project Properties->Publish(ing)->Application Files and click the reset all button. Does that help?

RCIX
- 38,647
- 50
- 150
- 207
-
34In case anyone lease wanders across this. I had a similar problem but didn't want to just reset all because I wanted to preserve the previous settings. So in the Application Files dialog, I checked "show on files" and it showed me missing files with a warning icon so I could delete manually. – yieldvs Dec 01 '11 at 23:11
-
1I second yieldvs's comments, I would recommend not resetting all of them, instead click the 'Show all files' and select your reference. – JBickford Mar 06 '12 at 21:14
-
The reset-all button didn't help. After closing/re-opening the solution and re-running the application, the warnings return. @yieldvs' solution works. – PeterX Apr 18 '13 at 00:13
-
3Reset All appears to work only on the files that are currently shown in the dialog. In other words, you should probably tick Show All Files before hitting the reset button. – Mels May 24 '13 at 07:20
-
3Before reading comments and deleting manually I found that I had to click 'reset all' multiple times. After clicking about 5 times my warnings are gone. – CramerTV Sep 12 '13 at 19:16
-
For me, the project name had been changed. A previous developer had included the PDB files in the click once install, but the old name was still listed on the name of the PDB file to include for the main application. – Mike Sage Jul 07 '15 at 16:07
9
In Project Properties > Publish > Application Files...
If you click "Show All" you will see that some items have a yellow exclamation mark indicating that those files are no longer referenced. Just delete these entries.

Peet Brits
- 2,911
- 1
- 31
- 47