Visual Studio error: CleanWPPAllFilesInSingleFolder evaluates to '' instead of a boolean
Had this fine problem today, here is how I was able to solve it. Of course this seems to be more of a ‘fix’ than a permanent solution, but maybe I can help a few more devs :)
I’m currently using VS2013 Preview (updating to RTM next week), but this error exists in VS2012 as well.
How the error looks like:
Exception in executing publishing: Specified condition “$(CleanWPPAllFilesInSingleFolder)” evaluates to "" instead of a boolean.C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\Web\Microsoft.Web.Publishing.targets
Something not right about here…
Snipped from the document:
[sourcecode language=“XML”]
<_CleanWPPIfNeedTo Condition="’$(_CleanWPPIfNeedTo)’ == ’’ And ‘$(CleanWPPAllFilesInSingleFolder)’!=’’">$(CleanWPPAllFilesInSingleFolder)</_CleanWPPIfNeedTo>
False
[/sourcecode]
When the error presents itself => during preview and/or publishing
The fix
Close all documents for the solution
Clean and build
Close Visual Studio
Restart as admin
Click publish but DO NOT USE THE PREVIEW
Proceed with publishing
Comments
Thanks, this post saved me a headache.
If you know for sure that you won't publish as a single assembly False will work just fine.
Wow, this still seems to be an issue to this day.. I'm using Visual Studio 2013, Community Edition, made the mistake of pressing Preview (that failed) and then subsequently got that error. Restarting VS worked though. Thanks.
Last modified on 2013-10-02