“Execute Code First Migrations” checkbox disappeared from my publish profile

前端 未结 6 708
逝去的感伤
逝去的感伤 2020-12-15 23:17

I\'m using web deploy to deploy an MVC4 application using EF5 code first. I made a publish profile called \"development\" that uses web deploy for application and database u

6条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-16 00:15

    Since asking this question, I've run into this problem several more times in multiple versions of MVC and EF (all code first though of cource). When it happens, don't save the changes to your publish profile, make sure you are on the 'debug' build configuration, clean solution and rebuild solution. And if all that fails, restart Visual Studio and try again. So far, this has always solved the problem for me.

提交回复
热议问题