Web.config transformation option is greyed out

前端 未结 10 1088
刺人心
刺人心 2021-02-04 23:32

In VS2010, when I right click on my web.config file the \"Add Config Transforms\" option is greyed out.

Any idea how I can get that back?

10条回答
  •  天涯浪人
    2021-02-04 23:55

    I had this issue after having already added extra Configurations from Configuration Manager.

    I had to delete them, and re-add them before Visual Studio would enable "Add Config Transforms"

    I'm guessing the configurations for these in the web project were removed/corrupted at some point, and it needed to be reset.

提交回复
热议问题