当打开一个项目出现如下问题:
Severity Code Description Project File Line Suppression StateError CS1705 Assembly 'Cognex.VisionPro.Controls' with identity 'Cognex.VisionPro.Controls, Version=59.2.0.0, Culture=neutral, PublicKeyToken=ef0f902af9dee505' uses 'Cognex.VisionPro.Display.Controls, Version=59.2.0.0, Culture=neutral, PublicKeyToken=ef0f902af9dee505' which has a higher version than referenced assembly 'Cognex.VisionPro.Display.Controls' with identity 'Cognex.VisionPro.Display.Controls, Version=59.0.0.0, Culture=neutral, PublicKeyToken=ef0f902af9dee505' EMD_Rcam C:\Users\Administrator\Desktop\EMD_Rcam\EMD_Rcam\CSC 1 Active
解决办法:
将项目中References中所有与VisionPro .dll文件相关的删除然后重新添加你电脑上所安装Cognex软件的.dll文件;路径如下:C:\Program Files (x86)\Cognex\VisionPro\ReferencedAssemblies
重新添加后问题得到解决。
打开主要窗体Form的时候出现以下情况:
Could not find type"Cognex.VisionPro.CogRecordDisplay".Please make sure that the assembly that contains this type is referened.If this type is a part of your development project,make sure that the project has been successfully built using settings for your current platform or Any CPU.
点击“Igore and Continue”变能够正常打开Form窗体界面。