我正在開發一個ASP NET MVC 5應用程序。在Visual Studio 2015年工作正常,但是當我嘗試發佈在IIS中我得到一個錯誤:ASP NET MVC5編譯器在IIS中發佈錯誤(在VS2015中正常工作)
CS0103: the name 'model' does not exist in the current context.
Línea 1: @using Name.Models
**Línea 2: @model LoginViewModel**
c:\windows\system32\inetsrv>"C:\Windows\Microsoft.NET\Framework64\v4.0.30319\csc.exe" /t:library /utf8output /R ...
This compiler is provided as part of the Microsoft (R) .NET Framework,
but only supports language versions up to C# 5, which is no longer the
latest version. For compilers that support newer versions of the C#
programming language, see http://go.microsoft.com/fwlink/?LinkID=533240
在同一個項目中,我有沒有問題,以前的出版物。
你的發佈包裏有'System.Web.Mvc'嗎? – Perdido