具有类库输出类型的项目无法直接启动. [英] A Project with an output type of Class Library cannot be started directly.

查看:339
本文介绍了具有类库输出类型的项目无法直接启动.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了Async-CTP-v3以使用C#5的新功能,但是当我尝试使用async关键字/await表达式运行控制台应用程序时,出现此错误:

具有类库输出类型的项目无法直接启动.

为了调试该项目,请向该解决方案中添加一个引用该库项目的可执行项目.将可执行项目设置为启动项目."

有没有人可以帮助我?谢谢.

I have installed Async-CTP-v3 for using new feature of C# 5 but when I tried to run a console application using async keyword/await expression this error appeared:

"A Project with an output type of Class Library cannot be started directly.

In order to debug this project, add an executable project to this solution which references the library project. Set the executable project as the startup project."

Is there anyone can help me? Thanks.

推荐答案

您需要设置为启动项目.
右键单击您的项目,然后单击设置为启动项目,然后运行项目
希望对您有帮助.
再见.
You need to set as startup project.
Right click on your project and click set as startup project than will run your project
i hope this will help for you.
bye..


要使该列表脱离未答复列表,请回答此问题 ^ ]
To get this off the unanswered list, this question was answered here[^]


这篇关于具有类库输出类型的项目无法直接启动.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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