Name does not exist in the current context

前端 未结 11 1655
时光说笑
时光说笑 2020-12-05 12:34

So, I\'m working on this project between my laptop and my desktop.

The project works on the laptop, but now having copied the updated source code onto the desktop, I

11条回答
  •  [愿得一人]
    2020-12-05 13:26

    I had this problem in my main project when I referenced a dll file.

    The problem was that the main project that referenced the dll was targeting a lower framework version than that of the dll.

    So I upped my target framework version (Right-click project -> Application -> Target framework) and the error disappeared.

提交回复
热议问题