VS2008 XAML设计视图扼流器命名空间C ++汇编 [英] VS2008 XAML design view chokes on namespaced C++ assembly

查看:113
本文介绍了VS2008 XAML设计视图扼流器命名空间C ++汇编的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个C ++程序集,托管代码和人工代码编译为
DLL。它正确导入到项目引用中,因为我可以
查看所有我的类和他们的成员与对象浏览器。

I have a C++ assembly with both managed and umanaged code compiled to a DLL. It is correctly imported into the project references as I can see all my classes and their members with the Object Browser.

问题是在XAML设计视图。在我的XAML代码中,我想要
使用我的C ++汇编数据绑定,所以我有这样的命名空间:

The problem is with the XAML Design view. In my XAML code I want to make a data bind with my C++ assembly so I have the namespace like so:

xmlns:kudu="clr-namespace:kudu;assembly=CLI"



< dll和它有一个名为kudu内的命名空间。
Design视图拒绝显示XAML并给出此错误:

CLI is the name of the dll and it has a namespace inside called kudu. The Design view refuses to shows the XAML and gives me this error:

Assembly 'CLI' was not found. Verify that you are not missing an 
assembly reference. Also, verify that your project and all referenced
assemblies have been built.

最好的部分是我可以构建整个解决方案,
一切正常!窗口更新为C ++对象更改和
不是。但是,在设计视图中,这使得继续
开发变得非常困难。

The best part is I can actually build the entire solution and everything works! The window updates as the C++ objects change and what not. However with out the Design view this makes continuing development quite difficult.

有人有答案,为什么会发生这种情况, b呢?

Does anyone have an answer as to why this happens and how I can fix it?

推荐答案

这可能是因为ide无法加载一个非托管dll。您可能需要将它们移动到windows / system32。

This is probably happening because the ide cannot load one of the unmanaged dll's. You may have to move them into the windows/system32.

这篇关于VS2008 XAML设计视图扼流器命名空间C ++汇编的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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