Unable to apply publish properties?

2019-02-04 04:54发布

问题:

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.

回答1:

Open your project, select Project Properties->Publish(ing)->Application Files and click the reset all button. Does that help?



回答2:

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.