VS2010: The operation could not be completed

問題

Visual Studio 2010 建置專案時出現錯誤:

The operation could not be completed. The parameter is incorrect.

這個錯誤訊息的用處不大。試過重開 Visual Studio 2010、Run as Administrator 都沒用。
改試試建置整個方案,結果出現:


The project file '' has been renamed or is no longer in the solution.

嗯,有點線索了。

原因

方案中的某個或某些專案所參考的外部組件或外部專案不見了(也許被刪掉或搬移到別處)。

解法

逐一檢視各專案的組件參考清單,看看是不是有無效的參考。如果是 ASP.NET 網站,則開啟網站的屬性視窗,查看 References 頁籤內的設定。

修正這些無效的參考,再重新 build 應該就行了。

沒有留言:

技術提供:Blogger.
回頂端⬆️