“Missing compiler required member” error being thrown multiple times with almost no changes to code

后端 未结 12 1242
既然无缘
既然无缘 2020-12-13 22:46

Today after deploying some changes to a C# MVC site that I run, I went back to make some more modifications and came across this error:

Missing compil

12条回答
  •  情深已故
    2020-12-13 23:18

    I don't have a correct solution, but I'll add my data point:

    In my case the error is caused by referencing GoogleSearchAPINet20

    Here is what happens:

    • I close the solution that builds
    • I open the solution again. It still builds
    • As soon as I make any change and try to build, I get 19 "Missing compiler required member ..." errors
    • I remove the reference to GoogleSearchAPINet20
    • I add back the reference to GoogleSearchAPINet20
    • I build the solution. It builds without errors
    • I can now make code changes, build or perform any other actions with solution correctly as long as my Visual Studio is open
    • I close Visual Studio
    • Repeat from step one

    I'm not referencing System.Core.dll in my solution at all and my target framework is .NET 4.

    I'm a bit annoyed at this point ...

提交回复
热议问题