gpt4 book ai didi

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

转载 作者:可可西里 更新时间:2023-11-01 08:34:06 25 4
gpt4 key购买 nike

我试图找出 .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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com