Net Core教程

C# “A project with an Output type of Class Library cannot be started directly“

本文主要是介绍C# “A project with an Output type of Class Library cannot be started directly“,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

网上其它方法试不通,直觉认为是属性配置问题。于是在项目属性中找灵感。

这个错误的意思是,设为启动项的类型出错。Class Library不能作为输出类型。
右键打开项目属性后,把Output type设为 Appilication形式的就好。
在这里插入图片描述

这篇关于C# “A project with an Output type of Class Library cannot be started directly“的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!