简体   繁体   English

Visual Studio 2012 RTM,无法调试4.5之前的.Net版本

[英]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.

相关问题 从.NET 4.5重定向到3.5的Visual Studio 2012项目无法在Windows 7上找到框架 - Visual Studio 2012 project retargeted from .NET 4.5 to 3.5 cannot find framework on Windows 7 我需要Visual Studio 2012 for .NET 4.5还是Visual Studio 2010适合4.5? - Do I need visual studio 2012 for .NET 4.5 or is visual studio 2010 fine for 4.5? T4在Visual Studio 2012 .NET 4.5中的程序集引用 - Assembly references in T4 in Visual Studio 2012 .NET 4.5 将Visual Studio 2012 ASP.NET(4.5框架)项目部署到Server 2012 R2 Standard - Deploy Visual Studio 2012 ASP.NET (4.5 Framework) project to Server 2012 R2 Standard 无法在Visual Studio 2012中调试单元测试项目 - Cannot debug a unit testing project in Visual Studio 2012 在Visual Studio 2012中调试.NET Framework源代码? - Debug .NET Framework Source Code in Visual Studio 2012? 如何将我的 Visual Studio 2012 从 .NET Framework 4.5 升级到 .NET Framework 4.7.2? - How to upgrade my Visual Studio 2012 from .NET Framework 4.5 to .NET Framework 4.7.2? Visual Studio 2012 - 在 .NET 4.5 框架中找不到 System.Transactions 程序集 - Visual Studio 2012 - Can't find System.Transactions assembly in .NET 4.5 framework JavaScript无法将值返回到原始窗口(Visual Studio 2012中的ASP.NET 4.5) - JavaScript not returning value to original window (ASP.NET 4.5 in Visual Studio 2012) 在Windows 8.1中仅在Visual Studio 2012中不显示.Net Framework 3.0、3.5、2.0 - .Net framework 3.0, 3.5 , 2.0 not showing in Visual studio 2012 only 4.0 and 4.5 in windows 8.1
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM