0

私はVisual Studio 2013でMVC 4.5 C#プロジェクトを持っています。同僚が私と協力し始めるまで、エラーなく完全に実行されていました。VS 2013 MVC 4.5壊れた参照

私の同僚のVSバージョンは2015でした。私のプロジェクトと同期したとき(TFS経由)、すべての参照が壊れてしまったようです。今はVSが私のRazorタグを認識しなくなり、多くのエラーと警告が表示されます。

ファイルの数に応じて、エラーのリストを開き、警告が大きくなります。ここで私はプロジェクトのちょうどメインビューを開いたときに、それがどのように見えるかの例です:

Warning 101 Found conflicts between different versions of the same dependent assembly that could not be resolved. These reference conflicts are listed in the build log when log verbosity is set to detailed. 

Warning 103 Unknown element 'lmweb_mvc.models.leaseviewmodel' or element cannot be placed here. 

Error 104 The name 'model' does not exist in the current context 

Error 105 The name 'ViewBag' does not exist in the current context 

Error 106 The name 'ViewBag' does not exist in the current context 

Error 107 'System.Web.WebPages.Html.HtmlHelper' does not contain a definition 
for 'BeginForm' and no extension method 'BeginForm' accepting a first argument of type 'System.Web.WebPages.Html.HtmlHelper' could be found (are you missing a 
using directive or an assembly reference?) 

Error 108 The name 'FormMethod' does not exist in the current context 

Error 109 No overload for method 'DropDownList' takes 1 arguments 

Error 110 'System.Web.WebPages.Html.HtmlHelper' does not contain a definition for 'BeginForm' and no extension method 'BeginForm' accepting a first argument of type 'System.Web.WebPages.Html.HtmlHelper' could be found (are you missing a using directive or an assembly reference?) 

Error 111 The name 'FormMethod' does not exist in the current context 

Error 112 'System.Web.WebPages.Html.HtmlHelper' does not contain a definition for 'BeginForm' and no extension method 'BeginForm' accepting a first argument of type 'System.Web.WebPages.Html.HtmlHelper' could be found (are you missing a using directive or an assembly reference?) 

Error 113 'System.Web.WebPages.Html.HtmlHelper' does not contain a definition for 'ActionLink' and no extension method 'ActionLink' accepting a first argument of type 'System.Web.WebPages.Html.HtmlHelper' could be found (are you missing a using directive or an assembly reference?) 

Error 114 'System.Web.WebPages.Html.HtmlHelper' does not contain a definition for 'ActionLink' and no extension method 'ActionLink' accepting a first argument of type 'System.Web.WebPages.Html.HtmlHelper' could be found (are you missing a using directive or an assembly reference?) 

Error 115 The name 'ViewBag' does not exist in the current context 

Error 116 'System.Web.WebPages.Html.HtmlHelper' does not contain a definition for 'ActionLink' and no extension method 'ActionLink' accepting a first argument of type 'System.Web.WebPages.Html.HtmlHelper' could be found (are you missing a using directive or an assembly reference?) 

Error 117 The name 'ViewBag' does not exist in the current context 

Error 118 'System.Web.WebPages.Html.HtmlHelper' does not contain a definition for 'ActionLink' and no extension method 'ActionLink' accepting a first argument of type 'System.Web.WebPages.Html.HtmlHelper' could be found (are you missing a using directive or an assembly reference?) 

Error 119 The name 'ViewBag' does not exist in the current context 

Error 120 'System.Web.WebPages.Html.HtmlHelper' does not contain a definition for 'ActionLink' and no extension method 'ActionLink' accepting a first argument of type 'System.Web.WebPages.Html.HtmlHelper' could be found (are you missing a using directive or an assembly reference?) 

Error 121 The name 'ViewBag' does not exist in the current context 

Error 122 'System.Web.WebPages.Html.HtmlHelper' does not contain a definition for 'ActionLink' and no extension method 'ActionLink' accepting a first argument of type 'System.Web.WebPages.Html.HtmlHelper' could be found (are you missing a using directive or an assembly reference?) 

Error 123 The name 'ViewBag' does not exist in the current context 

Error 124 'System.Web.WebPages.Html.HtmlHelper' does not contain a definition for 'ActionLink' and no extension method 'ActionLink' accepting a first argument of type 'System.Web.WebPages.Html.HtmlHelper' could be found (are you missing a using directive or an assembly reference?) 

Error 125 The name 'ViewBag' does not exist in the current context 

Error 126 'System.Web.WebPages.Html.HtmlHelper' does not contain a definition for 'ActionLink' and no extension method 'ActionLink' accepting a first argument of type 'System.Web.WebPages.Html.HtmlHelper' could be found (are you missing a using directive or an assembly reference?) 

Error 127 The name 'ViewBag' does not exist in the current context 

Error 128 'System.Web.WebPages.Html.HtmlHelper' does not contain a definition for 'ActionLink' and no extension method 'ActionLink' accepting a first argument of type 'System.Web.WebPages.Html.HtmlHelper' could be found (are you missing a using directive or an assembly reference?) 

Error 129 The name 'ViewBag' does not exist in the current context 

Error 130 'System.Web.WebPages.Html.HtmlHelper' does not contain a definition for 'ActionLink' and no extension method 'ActionLink' accepting a first argument of type 'System.Web.WebPages.Html.HtmlHelper' could be found (are you missing a using directive or an assembly reference?) 
Error 131 The name 'ViewBag' does not exist in the current context 

Error 132 'System.Web.WebPages.Html.HtmlHelper' does not contain a definition 
for 'DisplayFor' and no extension method 'DisplayFor' accepting a first argument of type 'System.Web.WebPages.Html.HtmlHelper' could be found (are you missing a using directive or an assembly reference?) 

Error 133 'System.Web.WebPages.Html.HtmlHelper' does not contain a definition for 'DisplayFor' and no extension method 'DisplayFor' accepting a first argument of type 'System.Web.WebPages.Html.HtmlHelper' could be found (are you missing a using directive or an assembly reference?) 

Error 134 'System.Web.WebPages.Html.HtmlHelper' does not contain a definition for 'DisplayFor' and no extension method 'DisplayFor' accepting a first argument of type 'System.Web.WebPages.Html.HtmlHelper' could be found (are you missing a using directive or an assembly reference?) 

Error 135 'System.Web.WebPages.Html.HtmlHelper' does not contain a definition for 'DisplayFor' and no extension method 'DisplayFor' accepting a first argument of type 'System.Web.WebPages.Html.HtmlHelper' could be found (are you missing a using directive or an assembly reference?) 

Error 136 'System.Web.WebPages.Html.HtmlHelper' does not contain a definition for 'DisplayFor' and no extension method 'DisplayFor' accepting a first argument of type 'System.Web.WebPages.Html.HtmlHelper' could be found (are you missing a using directive or an assembly reference?) 

Error 137 'System.Web.WebPages.Html.HtmlHelper' does not contain a definition for 'DisplayFor' and no extension method 'DisplayFor' accepting a first argument of type 'System.Web.WebPages.Html.HtmlHelper' could be found (are you missing a using directive or an assembly reference?) 

Error 138 'System.Web.WebPages.Html.HtmlHelper' does not contain a definition 
for 'DisplayFor' and no extension method 'DisplayFor' accepting a first argument of type 'System.Web.WebPages.Html.HtmlHelper' could be found (are you missing a using directive or an assembly reference?) 

Error 139 'System.Web.WebPages.Html.HtmlHelper' does not contain a definition for 'DisplayFor' and no extension method 'DisplayFor' accepting a first argument of type 'System.Web.WebPages.Html.HtmlHelper' could be found (are you missing a using directive or an assembly reference?) 

Error 140 'System.Web.WebPages.Html.HtmlHelper' does not contain a definition for 'DisplayFor' and no extension method 'DisplayFor' accepting a first argument of type 'System.Web.WebPages.Html.HtmlHelper' could be found (are you missing a using directive or an assembly reference?) 

Error 141 'System.Web.WebPages.Html.HtmlHelper' does not contain a definition for 'ActionLink' and no extension method 'ActionLink' accepting a first argument of type 'System.Web.WebPages.Html.HtmlHelper' could be found (are you missing a using directive or an assembly reference?) 

Error 142 'System.Web.WebPages.Html.HtmlHelper' does not contain a definition for 'ActionLink' and no extension method 'ActionLink' accepting a first argument of type 'System.Web.WebPages.Html.HtmlHelper' could be found (are you missing a using directive or an assembly reference?) 
+0

ホエイはあなたに「同期」と言っていますが、どういう意味ですか?バージョン管理システム(Git、TFSなど)を使用していますか? – newmanth

+0

解決方法を試しましたか?また、.suoファイルを削除することもできます。 –

+0

@newmanth私はTFS同期を意味しました。はい、私はバージョンコントロールを使用していますが、ロールバックしようとしましたが問題は解決しませんでした。 –

答えて

0

あなたはNuGetを使用している場合、私はあなたが見ることができそうで

Update-Package –reinstall 

を作るためにあなたを提案リファレンス何が間違っているかを確認するパス

関連する問題