VS 2012在建立Hello World时出错:“操作无法完成。参数不正确”。 [英] VS 2012 Error on build of Hello World: "The operation could not be completed. The parameter is incorrect"

查看:112
本文介绍了VS 2012在建立Hello World时出错:“操作无法完成。参数不正确”。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经启动了VS2012。我创建了一个新的解决方案/项目,并将该项目作为控制台应用程序。在提供的 Program类的 Main方法中,我添加了一行,即:

I have started up VS 2012. I created a new solution/project, and made the project a console app. In the provided "Program" class, in the "Main" method, I have added a single line, namely:

Console.WriteLine("Hello World");

这是我唯一要做的事情。

This is the ONLY thing I have done.

我右键单击解决方案名称,然后选择构建。

I right-click on the solution name, and select "Build".

立即弹出一个对话框/警报,标题为 Microsoft Visual Studio,在红色圆圈中包含银色的 X,然后是极为有用的错误文本,显示为:

Immediately, a dialog/alert pops up with the title "Microsoft Visual Studio", containing the silver "X" in the red circle, followed by the enormously useful error text that reads:


操作无法完成。参数不正确。

The operation could not be completed. The parameter is incorrect.

我已经对这个非常有用的错误进行了广泛的搜索,并得出结论:许多不同的情况。就我而言,几天前(在一个更加复杂的MVC应用程序上)我开始体验它,而且它似乎是断断续续的。有时我得到错误,有时没有。有时我可以完全关闭VS并重新打开,它仍然存在,有时会消失几个小时。重新启动系统(ick)通常会使它消失。

I have done extensive searching on this very informative error, and have come to the conclusion that it pops up in many different circumstances. In my case, I started experiencing it some days ago (on a much more complex MVC app) and it seems intermittent. Sometimes I get the error, sometimes not. Sometimes I can close VS entirely and re-open and it will still be there, sometimes it will be gone for several hours. Rebooting the system (ick) usually makes it go away.

有任何帮助吗?现在这使我发疯。

Any help out there? This is now driving me crazy. Many thanks in advance.

附加信息:如果我在任务管理器中杀死了所有Visual Studio应用程序(而不是仅仅以更常规的方式关闭Visual Studio),它似乎始终解决重新启动Visual Studio时出现的问题。仍然感到困惑。

ADDITIONAL INFO: If I kill all Visual Studio applications in the task manager (rather than just closing the Visual Studio the more conventional way) it seems to always fix the problem on restarting Visual Studio. Still baffled.

推荐答案

简单地关闭VS并再次打开,对我来说就是一个错误。

Simply turning VS off and on again removed this error for me.

这篇关于VS 2012在建立Hello World时出错:“操作无法完成。参数不正确”。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆