Visual-studio – ‘Specified condition “$(PackageAsSingleFile)” evaluates to “” instead of a boolean

msbuildvisual studiovisual studio 2012

The visual studio 2012 on my PC get the following error message when preview in the "Public Web". I need to restart VS to get rid of the error message.

Invoke build failed due to exception 'Specified condition "$(PackageAsSingleFile)" evaluates to "" instead of a boolean. C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\Microsoft.Web.Publishing.targets'

What caused the error?

Best Answer

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