最新消息:关注【已取消】微信公众号,可以获取全套资料,【全套Java基础27天】【JavaEE就业视频4个月】【Android就业视频4个月】

A project with an output type of class library cannot be started directly错误

C#/VB.NET 太平洋学习网 0浏览 评论

Visual Studio上点击启动项目时出现“A project with an output type of class library cannot be started directly”错误,这是因为VS工具不知道启动项目是哪一个,具体错误内容全文如下:

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 the library project. Set the executable project as the startup project.

如图所示:

image.png

错误解决方案:

在项目上点击右键,选择“Set as StartUp Project” 选项(中文意思为:作为启动项目),然后点击VS工具中的“start”按钮重新运行项目即可。

image.png

来源网站:太平洋学习网,转载请注明出处:http://www.tpyyes.com/a/csharp/893.html
"文章很值,打赏犒劳作者一下"
微信号: Javaweb_engineer

打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,你说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

与本文相关的文章

发表我的评论
取消评论

表情

您的回复是我们的动力!

  • 昵称 (必填)

网友最新评论