A project with an Output Type of Class Library cannot be started directly的解決

按F5調試時發現這個錯誤:
A project with an Output Type of Class Library cannot be started directly

原因是:把類庫項目作爲起始項目了,起始項目只能是可執行程序或者web程序

解決方法:在你要啓動的項目上單擊右鍵,選擇Set as startup project 選擇,這時會發現項目的字體已經變黑,表示現以該項目做爲啓動項目。

還要設置起始頁,就是網站的首頁。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章