错误:具有类库的输出类型的项目

use*_*749 11 .net c# visual-studio-2008

我试图找出.net并得到这个代码,当我尝试从VS 2008运行它给我这个错误

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 to the library project. Set the executable project as the startup project
Run Code Online (Sandbox Code Playgroud)

我正在学习C#所以不知道该怎么做

Dar*_*rov 21

您无法运行库.您只能运行可执行文件或网站.因此,右键单击相应的项目并设置为StartUp Project.然后你可以运行它:

在此输入图像描述