2016-07-06 12 views
2

我已將我的班級從MvcPatientLaboratoryResultsOfInterestViewModel更名爲MvcPatientBloodResultsViewModel模型與使用Statement MVC查看中指定的類型不同

問題如下,可以在這張圖片中看到。在我的剃鬚刀視圖中,Model的類型與我在using語句中聲明的類型不對應。 enter image description here

我得到以下錯誤:

The type or namespace name 'MvcPatientLaboratoryResultsOfInterestViewModel' does not exist in the namespace 'EDR.Presentation.WebMain.ViewModels' (are you missing an assembly reference?)

我已清理我的解決方案,並試圖重建,沒有成功。

這是怎麼發生的?

+0

你有VS編譯器或嘗試進入視圖時出現此錯誤? – DespeiL

+0

當我嘗試編譯解決方案 –

+2

您是否試圖關閉VS並再次打開它? – DespeiL

回答

3

只是試圖重新打開你的VS工作室

+0

即使在清潔解決方案和重建之後,這似乎仍然有效。 –