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

后端 未结 9 672
悲&欢浪女
悲&欢浪女 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:10

    In my case it was a project defined using Target Framework: ".NET Framework 4.0 Client Profile " that tried to reference dll projects defined using Target Framework: ".NET Framework 4.0".

    Once I changed the project settings to use Target Framework: ".NET Framework 4.0" everything was built nicely.

    Right Click the project->Properties->Application->Target Framework

提交回复
热议问题