Object of type “X” cannot be converted to object of type “X”

后端 未结 8 1119
误落风尘
误落风尘 2020-12-09 16:10

(Can\'t believe this hasn\'t already been asked, but I can\'t find a dup)

In Visual Studio with lots of projects, when I first open the solution, I sometime

8条回答
  •  心在旅途
    2020-12-09 16:36

    After trying all of the above, cleaning, rebuilding, removing/re-adding references and editing the designer file - in the end simply closing visual studio and re-opening the project made everything better.

    tl;dr

    Try switching it off and on again.

提交回复
热议问题