86

Using VS2012 I created a dynamic data project. It all worked and then I started configuring the web deployment settings. I am not sure what setting I changed exactly as there was no error. However when I try and load the solution I get the following error for the project and it will no longer load.

Specified condition "$(CleanWPPAllFilesInSingleFolder)" evaluates to "" instead of a boolean. C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\Web\Microsoft.Web.Publishing.targets

I cannot see CleanWPPAllFilesInSingleFolder in the csproj file. Any ideas on how to fix this so that I can load the project once more?

6 Answers 6

209

I just had this issue as well. Try the following:

  1. Close Visual Studio
  2. Delete your .user and .suo files
  3. Re-open the solution.

This worked for me.

7
  • 13
    for the bleary eyed speed readers: that is close Visual Studio Not the solution!
    – fiat
    May 23, 2013 at 13:02
  • 13
    I've just stumbled upon this issue in VS2012, and simply closing and reopening VS solved the problem for me, no deleting necessary. Jun 6, 2013 at 19:31
  • 10
    I find this issue is caused by using the Preview feature of the new Publish window. If I skip the preview, it seems to work.
    – gregpakes
    Jun 26, 2013 at 9:40
  • Similar answer here: irisclasson.com/2013/10/02/… Nov 14, 2013 at 20:57
  • 1
    Also here. For me, I'd opened VS 2013, changed a config and immediately went to publish to Azure. When I did the preview, it failed with the error mentioned. Then, I couldn't build. The trick is to do a Rebuild BEFORE you publish, and it works.
    – Program.X
    Jul 8, 2015 at 9:16
7

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 VS 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
  5. 5.

let me know if this has helped you :)

1
4

I closed and re-opened my solution. I'm inclined to believe it's a defect in the Preview feature as that was the only thing I did differently before it started happening. I haven't been able to reproduce it since, however.

3

All I did was close Visual Studio then Reopened it. Done

0

In my case, it turned out that IIS was not installed on the destination server! Installing it fixed the problem.

0

In my case after removing all *.user and *.suo I had to restart VS.

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.