MSBuild with Azure - PublishProfileSet evaluates to a “”

梦想与她 提交于 2019-12-22 06:36:12

问题


I'm trying to deploy my project to Azure. I've been wrestling with EF code first on Azure for a few hours, but I got it to go once and it created a user. I went to publish an update, and now I'm getting the following error:

Invoke build failed due to exception 'Expected "$(_PublishProfileSet)" to evaluate to a boolean instead of "", in condition "$(_PublishProfileSet) And '$(PublishProfileName)' =='' And '$(WebPublishProfileFile)'==''".

I've removed the publish profile and readded it, I've also retrieved a fresh profile from Azure. This problem keeps popping up. I can't find PublishProfileSet in my solution anywhere, and I'm not sure where it's supposed to go or what it should be set to. Any ideas on how I can recover from this?


回答1:


Per Sayed's comment, the solution was to delete the entire /Properties/PublishProfiles directory in my solution, NOT to remove the Profiles from the "Edit Web Publish Profiles" window. The exact steps I took are as follows:

  1. Delete the /Properties/PublishProfiles folder from my project.

    1.5. Restart Visual Studio.

  2. Press F6 to rebuild the solution.
  3. Downloaded a new copy of the profile from Azure.
  4. Imported the profile through the Publish wizard.


来源:https://stackoverflow.com/questions/13904822/msbuild-with-azure-publishprofileset-evaluates-to-a

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!