Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

'Specified condition "$(PackageAsSingleFile)" evaluates to "" instead of a boolean?

I'm not sure what causes it, but restarting VS 2012 fixed it for me.


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?


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:

  1. Try "Clean" then rebuild
  2. If it's still not publishing, try closing & reopening your project again
  3. 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.
  4. 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 :)


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.