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