[英]Visual Studio 2012 RTM, Cannot debug .Net older than 4.5
I have downloaded and installed the RTM version of Visual Studio 2012 from Microsoft. 我已经从Microsoft下载并安装了Visual Studio 2012的RTM版本。 If I target any version of .Net other than 4.5 in any application I cannot debug that app. 如果我在任何应用程序中都针对4.5以外的任何其他.Net版本,则无法调试该应用程序。 When I hit F5, it shows this dialog: 当我按F5时,它显示以下对话框:
As you can see, I'm using it in Windows 8. The interesting thing is that if I see this dialog, even if I change the project to target .Net 4.5 after it shows this dialog, I won't be able to debug it. 如您所见,我正在Windows 8中使用它。有趣的是,如果看到此对话框,即使在显示此对话框后将项目更改为目标.Net 4.5,也无法调试它。 So basically I can debug an app as long as it is set to .Net 4.5 and this setting has never been changed. 因此,基本上,我可以调试应用程序,只要将其设置为.Net 4.5并且此设置从未更改过即可。
Is there any solution to this problem? 有什么解决办法吗? Thanks. 谢谢。
Which version of Visual Studio do you have ? 您拥有哪个版本的Visual Studio? Express Edition isn't compatible with "desktop" projects, only with Metro style apps (so it's not only related to .Net target version) Express Edition与“桌面”项目不兼容,仅与Metro风格的应用程序兼容(因此,它不仅与.Net目标版本有关)
Oh my god, Man, I exactly had the same error! 哦,天哪,伙计,我确实有同样的错误! VERY FRUSTRATING! 非常烦躁! I have found a workaround though, here it is: 我找到了一种解决方法,这里是:
Go under your project's folder, and find the "bin" folder in it, the go into "debug" folder and delete everything from there! 转到项目文件夹下,在其中找到“ bin”文件夹,进入“ debug”文件夹,然后从此处删除所有内容! VS 2012 must be closed when you do this. 执行此操作时,必须关闭VS 2012。
Debug worked for me afterwards. 之后,Debug为我工作。
Repeat and rinse with all other projects you have this issue with, and spread the word! 重复并冲洗您遇到此问题的所有其他项目,并广为传播!
Hope it helps. 希望能帮助到你。 Cheers. 干杯。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.