首页 > 代码库 > 011. 解决VS2015中CS1528: Expected ; or = (cannot specify constructor arguments in declaration)

011. 解决VS2015中CS1528: Expected ; or = (cannot specify constructor arguments in declaration)

编译器错误消息: CS1528: Expected ; or = (cannot specify constructor arguments in declaration)

源错误:

 
行 94:             #line default
行 95:             #line hidden
行 96: BeginContext("~/Views/Home/Index.cshtml", 231, 32, true);

解决方案:

@{
    Layout = null;
}
<!DOCTYPE html>
<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>Index</title>
</head>
<body>
    <div>
       @( ViewBag.mvcFirst )
    </div>
</body>
</html>

 

011. 解决VS2015中CS1528: Expected ; or = (cannot specify constructor arguments in declaration)