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

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

问题描述

我有一些奇怪的问题,一些C#库和控制台项目(但不是我从头开创),他们正在显示手表和智能标签进行调试使用C ++ / CLI符号(例如,显示 System :: Object ^ 我希望 System.Object ):

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):

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

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?

推荐答案

遇到这个问题,调试器在所有c#项目中拾取c#和c ++。我正在运行Windows 7 64位。

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.

我通过转到快捷方式的属性的兼容性选项卡来解决此问题。它被检查为运行为windows xp服务包3.我取消选中,仍然保持运行作为管理员检查。突然间我的调试器把它全部重新拿回来了。

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天全站免登陆