为什么调试一个C#项目显示C ++ / CLI符号? [英] Why does debugging a C# project display C++/CLI symbols?

查看:164
本文介绍了为什么调试一个C#项目显示C ++ / CLI符号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个奇怪的问题,一些C#库和控制台项目(但不是我从头创建的),他们显示手表和智能标记使用C ++ / CLI符号调试(例如,显示 System :: Object ^ 其中我会期望 System.Object ):





我尝试改变项目的guids,因为我认为这是问题(和一些已经改变),删除obj /调试文件夹,重新启动Visual Studio 2010,修复Visual Studio 2010,甚至旧喜欢重新启动Windows。

$ b

解决方案

我有一个没有明显的设置,也遇到了这个问题,调试器在所有的c#项目中拿起c#和c ++。我正在运行windows 7 64位。



我通过转到快捷方式属性的兼容性选项卡来解决这个问题。它被检查为运行作为Windows XP的服务包3.我取消选中,仍然保持运行作为管理员检查。突然,我的调试器选择所有它作为c#再次。


I've got a strange problem with some C# library and console projects (but not ones I create from scratch) where they are displaying the watches and the smart tags for debugging using C++/CLI notation (for example, showing System::Object^ where I would expect System.Object):

I've tried changing the project guids, as I thought this was the problem (and some had changed), deleting obj/debug folders, restarting Visual Studio 2010, repairing Visual Studio 2010 and even the old favourite restarting Windows.

Is there any obvious setting I'm missing that has somehow been enabled?

解决方案

I ran into this issue as well, the debugger picked up c# and c++ in all c# projects. I'm running windows 7 64 bit.

I resolved this issue by going to the compatibility tab of the properties of the shortcut. It was checked as running as windows xp service pack 3. I unchecked that and still kept run as administrator checked. Suddenly my debugger picked all of it up as c# again.

这篇关于为什么调试一个C#项目显示C ++ / CLI符号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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