我已將我的班級從MvcPatientLaboratoryResultsOfInterestViewModel
更名爲MvcPatientBloodResultsViewModel
。模型與使用Statement MVC查看中指定的類型不同
問題如下,可以在這張圖片中看到。在我的剃鬚刀視圖中,Model
的類型與我在using語句中聲明的類型不對應。
我得到以下錯誤:
The type or namespace name 'MvcPatientLaboratoryResultsOfInterestViewModel' does not exist in the namespace 'EDR.Presentation.WebMain.ViewModels' (are you missing an assembly reference?)
我已清理我的解決方案,並試圖重建,沒有成功。
這是怎麼發生的?
你有VS編譯器或嘗試進入視圖時出現此錯誤? – DespeiL
當我嘗試編譯解決方案 –
您是否試圖關閉VS並再次打開它? – DespeiL