c#调试出错

来源:百度知道 编辑:UC知道 时间:2024/09/25 19:01:10
我安装的 visual studio C# 是英文版的,调试时,弹出对话框“ A project with an Output Type of Class Libary 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.”
不太明白什么意思,还请高手指点,应该怎么做?谢谢啦!

你启动项目是动态连接库类型的。不能直接启动。只有windows应用程序和console应用程序可以直接启动。

大概意思是:“带有一个类库输出类型项目不能直接启动
为了调试此项目,添加一个可执行的项目,这个解决方案引用库项目。设置为启动项目的可执行项目”
你只需要在解决方案那里右键点“设置启动项目”就可以了。

选输出类型为:控制台应用程序。那个下拉列表框里。