我试图找出 .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#,所以不知道该做什么
最佳答案
您不能运行库。您只能运行可执行文件或网站。因此,右键单击相应的项目并设置为启动项目。然后就可以运行了:
关于c# - 错误 : A project with an out put type of class library,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5095648/