Вопрос

Lately I had a problem (Could not load type '...' from assembly '...') with my test project (unit-test in Visual Studio 2010), so I tried (after looking for solutions here) deleting it and rewriting it. I deleted it by right-clicking on the project in Solution Explorer and choosing 'Remove'. Nevertheless, I can see that the project still exists, if I am looking in the folders (of the entire solution), through windows...

How can I correctly and completely delete the test project? (I have made a backup...)

Это было полезно?

Решение

Removing it from the project structure just modifies the solution file (.sln). After removing a project it's not anymore listed in there and the reference is gone.

So removing a project from the solution just removes the reference to the project. If you'd like to remove it entirely, delete it manually from its old location on the disk, as well.

Другие советы

You almost do the right thing... You have to "Remove" from the Solution, by right clicking and "Remove" the project. This action will change the Solution (.sln) file, removing the reference to the project, but the folders will remain in the disk. Then you have to delete it from the disk manually.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top