我正在將解決方案從VS2010/MVC3/.Net 4升級到VS2012/MVC4/.Net 4.5。該解決方案已經升級使用VS2012的項目遷移工具,我跟着this guide升級MVC3到4.在大多數頁面沒有突出顯示,編輯時報告錯誤
目前,剃刀給我的問題。語法高亮不會出現任何東西,但佈局頁,當我嘗試在一個視圖中移動圍繞我要麼得到的對話框:
Waiting for a background operation to complete. This dialog will close when the operation completes.
或者我得到一個錯誤,告訴我檢查Visual Studio的活動日誌(C:\用戶{用戶} \應用程序數據\漫遊\微軟\ VisualStudio的\ 11.0 \ ActivityLog.xml),這使我這個錯誤:
System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.VisualStudio.Web.HTML.Implementation.Projection.GrowingSpanTracker.EnsureNoOverlap() at Microsoft.VisualStudio.Web.HTML.Implementation.Projection.GrowingSpanTracker.EnsureTrackingPoints() at Microsoft.VisualStudio.Web.HTML.Implementation.Projection.GrowingSpanTracker.OnTextBufferChanged(Object sender, TextContentChangedEventArgs e) at Microsoft.VisualStudio.Text.Utilities.GuardedOperations.RaiseEvent[TArgs](Object sender, EventHandler`1 eventHandlers, TArgs args)
日誌的源列說,它來自「編輯或編輯擴展「。我在這裏運行的是vanilla VS2012,除了第一方的東西(微軟網頁開發工具,NuGet軟件包管理器和用於JavaScript的Windows庫的Visual Studio擴展)之外,沒有任何擴展。
編輯:一些額外的細節。如果我創建一個新的解決方案和MVC4項目,添加一行:
@RenderSection("title", false)
佈局,然後試圖定義在一個視圖中的部分:
@section title{Stuff}
的那一刻,我開始打字「 「大括號內的東西我得到相同的錯誤/行爲。
我編輯了你的標題。請參閱:「[應該在其標題中包含」標籤「](http://meta.stackexchange.com/questions/19190/)」,其中的共識是「不,他們不應該」。 –
啊,對,我的不好。感謝編輯。 – Dusda