C
C#4w ago
shiru0108

✅ Visual studio dont see new changes

I made a refactor in mvc project to clean architecture but when i moved a class 'Car' from CarRental.Presentation, file Models to file Entities in CarRental.Domain, Visual Studio dont see new changes and displays error with but directory when i write code, I also changed name from (for instance CarsProject) to CarRental. Therefore when i try to use class Car in other solution 'Infrastructure' and use dependency to car in entities it showing only directory to old car in models. Why?
15 Replies
Mąż Zuzanny Harmider Szczęście
Did you try restarting visual studios?
qqdev
qqdev4w ago
Can you show the error and the project tree?
shiru0108
shiru0108OP4w ago
No description
shiru0108
shiru0108OP4w ago
No description
shiru0108
shiru0108OP4w ago
it displays the old using directive
Mąż Zuzanny Harmider Szczęście
click the using thing ig nvm
shiru0108
shiru0108OP4w ago
If i click using (old) its working but there is no class.cs in file and i dont know how visual studio see files or class that visualy dont exists because they are removed to another directory xd
Mąż Zuzanny Harmider Szczęście
did you try restarting vs?
shiru0108
shiru0108OP4w ago
yeah
Mąż Zuzanny Harmider Szczęście
show the Car class code
shiru0108
shiru0108OP4w ago
okay XD im idiot i moved the class but didnt change the namespace there
Mąż Zuzanny Harmider Szczęście
there you go, it happens to everyone dont say that
shiru0108
shiru0108OP4w ago
thanks for help
MODiX
MODiX4w ago
If you have no further questions, please use /close to mark the forum thread as answered

Did you find this page helpful?