Asp.net MVC Razor view - CS1525: Invalid expression term '.'

后端 未结 3 1227
攒了一身酷
攒了一身酷 2020-12-19 02:51

I have two identical ASP.Net 4.6 MVC project, project 1 is using roslyn complier within the site which is working fine.

c:\\windows\\system32\\inetsrv>C:\\

3条回答
  •  無奈伤痛
    2020-12-19 03:18

    I just faced a similar issue and fixed it by doing as Huzzi suggested by adding the tags into the main web project's web.config and making sure that you have installed 'Microsoft.CodeDom.Providers.DotNetCompilerPlatform' from nuget.

提交回复
热议问题