框架给我关于无法直接启动的错误 [英] framework give me error about cannot started directly

查看:125
本文介绍了框架给我关于无法直接启动的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了Web项目,并为框架添加了新的类库。该框架包括DAL。但补充参考。没有,这没有让我失败。
runnig给我错误:

i created web project, and added new class library for framework. This framework includes DAL. But added reference . And running no this give me no fail. runnig give me error:

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

" 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 "

请帮助我...

推荐答案

您会收到此错误,因为选择了类库的项目作为启动项目在Visual Studio中。右键单击您的Web项目,然后选择设置为启动项目。

You get this error because the project for the class library is chosen as the startup project in Visual Studio. Right-click your web project and choose "Set as StartUp project".

这篇关于框架给我关于无法直接启动的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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