简体   繁体   English

尝试在Visual Studio 2008中调试Winforms应用程序时出错

[英]Error trying to debug winforms application in visual studio 2008

I have a solution working at VS 2008. It contains lots of projects. 我在VS 2008上有一个解决方案。它包含许多项目。 I installed VS 2010 and it converted all projects to work in .NET Framework 4. After I've found that there is no profit to use VS 2010, I decided to move back to 2008. After that debugging is totally broken. 我安装了VS 2010,并将其转换为可在.NET Framework 4中使用的所有项目。在发现使用VS 2010没有任何好处之后,我决定退回到2008。调试完全中断后。 When I select project and select "Debug -> Start New Instance" It says me: 当我选择项目并选择“调试->启动新实例”时,它说:

Error while trying to run project: Unable to start debugging. 尝试运行项目时出错:无法启动调试。 The remote computer does not have a CLR version which is compatible with the remote debugging components. 远程计算机没有与远程调试组件兼容的CLR版本。 To install a compatible CLR version, see instructions in the 'Remote Component Setup' page on Visual Studio CD. 要安装兼容的CLR版本,请参阅Visual Studio CD上“远程组件设置”页面中的说明。

I tried to remove both VSs and install 2008, removed .NET Frameworks and installed 3.5. 我试图同时删除VS和安装2008,删除.NET Frameworks并安装3.5。 I don't understand why it wants remote debugger while I'm trying just to run winforms application on local machine. 我不明白为什么我只想在本地计算机上运行winforms应用程序时为什么要使用远程调试器。 The same happens for Console applications. 控制台应用程序也是如此。

Appreciate any help. 感谢任何帮助。

Is your issue with Visual Studio or with the 4.0 Framework? 是Visual Studio还是4.0框架的问题?

If it is with just the framework. 如果只是框架。 I would change your projects Target Framework back to your former framework and continue to use VS2010. 我会将您的项目Target Framework改回您以前的框架,并继续使用VS2010。

在此处输入图片说明

If it is with VS2010, I would do the same thing as above before trying to run it in VS2008 again. 如果是VS2010,在尝试再次在VS2008中运行之前,我会执行与上述相同的操作。 You will probably have to edit the project files to the proper VS Version. 您可能必须将项目文件编辑为正确的VS版本。

See this CodeProject Article for an example what needs to be done. 有关需要执行的示例,请参CodeProject Article

or better yet if you have source control just restore your Solution from there. 甚至更好,如果您具有源代码控制,只需从那里恢复您的解决方案。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在Visual Studio 2008中附加哪个程序来调试.NET Winforms exe - Which process to attach to debug the .NET winforms exe in visual studio 2008 Visual Studio 2008调试不会因错误而停止 - Visual Studio 2008 debug does not stop on error Visual Studio 2008不会调试 - Visual Studio 2008 would not debug 尝试在 Visual Studio Code 中调试 C# 时出现“要执行的应用程序不存在”错误 - 'The application to execute does not exist' error when trying to debug C# in Visual Studio Code 调试技术:在调试WPF应用程序后,Visual Studio 2008会导致致命崩溃 - Debug Techniques: Visual Studio 2008 Process fatal crash after debug of WPF application 如何在 Visual Studio 2019 中调试 .NET 5 WinForms 应用程序,该应用程序引用 .NET Framework 4.8 class 库 - Howto debug .NET 5 WinForms application that references .NET Framework 4.8 class library in Visual Studio 2019 如何在Visual Studio 2008中调试* Invoke() - How to debug *Invoke() in Visual Studio 2008 在调试模式下在Visual Studio 2008中编辑代码 - Editing code in Visual Studio 2008 in debug mode 如何在 Wine 上的 VS 2008 Express 中调试 C# WinForms 应用程序? - How to debug C# WinForms application in VS 2008 Express on Wine? 在Visual Studio 2008中打开C#控制台应用程序时会自动创建Debug文件夹 - Debug folder is automatically created on opening C# console application in visual studio 2008
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM