无法编译数据网格 [英] Not able to compile the datagrid

查看:45
本文介绍了无法编译数据网格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我被以下问题困扰

类型System.Windows.Forms.DataGrid'同时存在于c:\ WINDOWS \ Microsoft.NET \ Framework \ v2.0.50727 \ System.Windows.Forms.dll和c:\ Program Files \ Microsoft.NET \ SDK \ CompactFramework \ v2.0 \ WindowsCE \ System.Windows.Forms.DataGrid.dll.

任何人都可以帮忙

Hi,

I am stuck with the below issue

The type System.Windows.Forms.DataGrid&#39 exists in both c:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\System.Windows.Forms.dll and c:\Program Files\Microsoft.NET\SDK\CompactFramework\v2.0\WindowsCE\System.Windows.Forms.DataGrid.dll.

Can anyone help

推荐答案

检查应用程序的项目引用-如果您正在构建Windows应用程序,而不是Windows CE,请删除WindowsCE \ System.Windows.Forms.DataGrid. dll.

您正在以某种方式混合使用Windows CE程序集和常规Windows窗体程序集.

问候
Espen Harlinn
Check project references for your application - if you are building and application for Windows and not Windows CE remove WindowsCE\System.Windows.Forms.DataGrid.dll.

You are somehow mixing Windows CE assemblies and regular Windows Forms assemblies.

Regards
Espen Harlinn


这篇关于无法编译数据网格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆