错误“类型”Microsoft.CompactFramework.Design.UnsafeControl'没有名为XYZ的属性“安装自定义控件后 [英] Error "The type 'Microsoft.CompactFramework.Design.UnsafeControl' has no property named XYZ" after installation of a custom control

查看:50
本文介绍了错误“类型”Microsoft.CompactFramework.Design.UnsafeControl'没有名为XYZ的属性“安装自定义控件后的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


推荐答案

Peter,

Peter,

问题是您需要将关联的程序集元数据文件放在与用户控件程序集相同的位置。

The problem is you need to have the accociated assembly meta data file in the same location as the user control assembly.

编译用户控件时,假设您具有带有DesktopCompatable和amp的DesignTimeAttributes文件; DesignTimeVisible设置为true,创建元数据文件,例如

When you compile your user control, assuming you have the DesignTimeAttributes file with DesktopCompatable & DesignTimeVisible set to true, the meta dat file is created e.g.

MyNameSpace.MyControls.dll(这是你控制dll)

MyNameSpace.MyControls.dll (this is you control dll)

MyNameSpace.MyControls。 WindowsCE.asmmeta.dll(这将被创建)

MyNameSpace.MyControls.WindowsCE.asmmeta.dll (this will be created)

只要这些文件在同一目录中,您就没有问题。

As long as these files are together in the same directory you will have no problem.

我花了好几个小时来解决这个问题,这是唯一的答案。

I spent hours and hours with this problem and this is the only answer.


这篇关于错误“类型”Microsoft.CompactFramework.Design.UnsafeControl'没有名为XYZ的属性“安装自定义控件后的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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