4.11.2013

Error "Has Been Renamed" in Visual Studio

Belakangan ini saya sedang mengerjakan sebuah project game yang berjalan di platform Windows 8 dan Windows Phone 8. As many people know, both platforms are new release version of Windows OS which were released in 2012. Beruntung sekali saya dapat menjumpai platform terbaru ini di awal-awal kemunculannya. Banyak hal baru yang saya temui pada pengerjaan project ini, terutama pada error-error yang sebelumnya belum pernah saya temui.

Untuk pengerjaan game terkait saya menggunakan Visual Studio. Karna saya sedang memfokuskan diri pada Windows 8 project maka VS yang saya pakai adalah Visual Studio Express 2012 for Windows 8. Hari ini saya menemukan sebuah error yang menyebalkan sekali. Kejadiannya adalah ketika saya memutuskan untuk mem-build lagi projectnya. Pada solution project induk (sln) yang biasanya berisi banyak vcxproj files tiba-tiba semua file-file tersebut sama sekali tidak bisa di-build ataupun di-rebuild. Muncul message box yang berisi peringatan berbunyi, "The Project ' ' has been renamed or is no longer in the solution."

Saya berusaha mencari tahu sebab terjadinya error. After a while I figured out how to fix this. Saya lihat solutionnya memiliki project-project berwarna silver. Setelah beberapa saat akhirnya saya menemukan solusi untuk fixing it. Pemecahannya adalah dengan right-click the web project dan pilih "Property Pages". Ketika properties muncul, look in the references list for items marked missing. Remove any missing references and re-add them (or) Right click on the solution -> Add -> Add Existing Project – and readd the project which is missing.  The solution should then build fine.

Maka akhirnya saya tau penyebabnya, yaitu:
When the solution can't find the project, it displays a warning when developer open the solution and shows the missing project grayed out with "(unavailable)" next to it. The message in this case is actually coming from one of the other projects in the solution, most likely a Web project (Website or Web application).



Nur Alfi Ekowati
[11-04-2013]

0 komentar:

Posting Komentar