c# - 错误 : A project with an out put type of class library

标签 c# .net 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

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

最佳答案

您不能运行库。您只能运行可执行文件或网站。因此,右键单击相应的项目并设置为启动项目。然后就可以运行了:

enter image description here

关于c# - 错误 : A project with an out put type of class library,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5095648/

相关文章:

c# to vb.net 如何继承多个类?无法转换它。 SharpDevelop 也失败了

c# - web.config 中的 session 状态

.net - Visual Studio 的未处理异常检查器插件

.net - 为什么我无法返回 System.Collections.Specialized.NameValueCollection 类型的值?

c# - 有没有办法确定显示器的物理尺寸?

c++ - 命令提示符关闭而不接受输入

C#从gridView读取数据到字符串

c# - 使用 null-coalescing 替代 try catch block

c# - SerialPort.GetPortNames() 行为

c# - Process.Start 参数问题 --- 转义 "="字符?