“Are you missing an assembly reference?” compile error - Visual Studio

后端 未结 9 636
悲&欢浪女
悲&欢浪女 2020-12-09 08:48

I am currently working on a server control for other applications in our company to interface with a WCF service. Every time I make a change code change and recompile the c

相关标签:
9条回答
  • 2020-12-09 09:20

    In my case, I had to change the Copy Local setting to true (right-click assembly in solution explorer, select properties, locate and change value of Copy Local property). Once this setting was changed, publication of my WCF service copied the file to the server and the error went away.

    0 讨论(0)
  • 2020-12-09 09:21

    While creating new Blank UWP project in Visual Studio 2017 Community, this error came up.

    After the suggested remedy (restoring NuGet cache) the reference resurfaced in the Project.

    0 讨论(0)
  • 2020-12-09 09:22

    If none of the solutions above worked, try this 10-second fix.

    Navigate to the startup project in solution explorer. Right click, properties > Application > Target framework. Change the target framework to anything else. Press Yes for the confirmation dialog. Give the changes a few seconds to take effect, then switch the framework back to what it was before.

    The error will hopefully go away for you like it did for me!

    0 讨论(0)
提交回复
热议问题