'Specified condition "$(PackageAsSingleFile)" evaluates to "" instead of a boolean?
Solution 1:
I'm not sure what causes it, but restarting VS 2012 fixed it for me.
Solution 2:
Restarting VS usually helps, but when it doesn't - try deleting .user
and .suo
files, as per this suggestion: https://stackoverflow.com/a/16223645/913845
This does not always work, however if you skip "Preview Deployment" it is less likely to fail.
Probably it's the solution to the entire class of evaluates to "" instead of a boolean. Visual Studio problems. Something for VS team at MS too look at?
Solution 3:
I've found a very very weird (and working) workaround for this type of deploy issues, if you have tried closing & opening VS with no luck, try to close all open document prior to the publish process. weird huh? :)
so the complete fix-it guide for this type of issues would be like the following:
- Try "Clean" then rebuild
- If it's still not publishing, try closing & reopening your project again
- Still no luck? try closing VisualStudio but this time delete all the *.user & *.suo files, then open up your solution again and give it a try.
- Finally if all these steps are not working, try my newest trick, close all the opened document and give it a try
let me know if this has helped you :)
Solution 4:
One common scenario that also raises that error is when you have files referenced on your solution that are missing.
So excluding those from the solution will fix it.