Predefined type 'System.Object' is not defined or imported .net 4.6

后端 未结 12 1420
别那么骄傲
别那么骄傲 2021-02-06 20:02

I\'m using MVC 5 and .net 4.6 to create a web API that my mobile app can connect too.

Whenever I build the project I get hundreds of errors telling me that I need to add

12条回答
  •  南旧
    南旧 (楼主)
    2021-02-06 20:59

    I have the same problem. I spent 2 day to resolve this problem. I try reinstall visual, clear cache visual, uninstall visual or setup windows 10 again => but not success.

    You can try follow step, it success for me

    1. Close visual
    2. Delete packages folder in solution folder
    3. Open visual and rebuild solution

    Good luck

提交回复
热议问题