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

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

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

猜你喜欢

转载自blog.csdn.net/admiumiu/article/details/121602905