无法直接启动具有类库输出类型的项目 [英] A project with an output type of class library can not be started directly

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

问题描述

我在Asp.net中创建了3层架构(在Visual Studio 2012中)

1)BusinessLogic Layer作为类库项目。

2)Businessobject Layer作为类库项目。

3)Dataaccess Layer作为类库类型。

4)表示层我创建了母版页,然后使用master将Web表单名称添加为Home页。现在我已将此网页表格(主页)设置为启动页面



我尝试过:



在表示层我选择了主页。现在我已将此Web表单(Home)设置为启动页面

I have created 3-tier architecure in Asp.net (in Visual Studio 2012)
1) BusinessLogic Layer taken as class library project.
2) Businessobject Layer as class library project.
3) Dataaccess Layer as Class library type.
4) for presentation layer I have created master page and then add web form name as Home using master page. now i have set this web form (Home) as start up page

What I have tried:

In presentation layer I have selected Home Page. now i have set this web form (Home) as start up page

推荐答案

您无法将任何生成类库的项目设置为VS中的启动项目:产品DLL文件而不是EXE,并且不包含系统运行应用程序所需的Main方法。



通过右键单击解决方案资源管理器中的名称,将可执行项目设置为启动项目。
You cannot set any project that generates a class library as the Startup Project in VS: the produce DLL files rather than EXE and do not contain a Main method which the system needs in order to run an application.

Set an executable project as your Startup Project by right clicking it's name in the Solution Explorer.


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

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