【发布时间】:2019-05-18 16:47:41
【问题描述】:
我来了
MissingMethodException:找不到方法:'Microsoft.Cci.IMethodReference Microsoft.Cci.ICustomAttribute.Constructor(Microsoft.CodeAnalysis.Emit.EmitContext)'。
在 ASP.NET Core 解决方案运行时尝试编辑 cshtml 文件时。
如何得到错误:
- 运行解决方案
- 编辑cshtml文件
- 转到显示 cshtml 的链接
- 显示错误
我有 Visual Studio Professional 2017 版本 15.9.4
.NET Core 版本为 2.1
【问题讨论】:
-
在运行 .net core 2.2 时也会得到这个。曾经定期发生,现在当我启用
.AddRazorOptions(options => options.AllowRecompilingViewsOnFileChange = true);进行更改时,刷新页面,我得到同样的错误。
标签: c# asp.net-core visual-studio-2017 asp.net-core-mvc asp.net-core-2.1